These are chat archives for angular/material

30th
Mar 2016
jkjha
@jkjha
Mar 30 2016 06:07
This is regarding angular ui-grid.. please have a look at this question if anyone can help
Jatin Bhatti
@jatinhbhatti
Mar 30 2016 08:30
i have problem in layout...
Jatin Bhatti
@jatinhbhatti
Mar 30 2016 08:37
This message was deleted

<md-content layout="column" flex-xs="100">
<div layout="row" flex="100" flex-xs="100" layout-align="center center" class="row">
<md-card class="login-card" flex-xs="100">
<md-card-content layout="row">
<div layout="column" flex="40" hide-xs hide-sm >
<div flex="40" flex-xs="100"class="task">

    </div>
    <div flex="30">
    </div>
  </div>
  <div layout="column" layout-padding style="background-color: #F3F4F8;" flex>
    <div flex>
        <div class="newlogo"><img src="img/.png" style="width:150px;height:100px" ></div>
      <md-input-container class=" md-block rinput" md-no-float >
        <input type="text" placeholder="Username" >
      </md-input-container>
      <md-input-container class="rinput" md-no-float >
        <input type="text" placeholder="Password">
      </md-input-container>
      <section layout="row"  layout-align="center center" layout-wrap >
          <md-button flex class="btnfpass">Forgot Password</md-button>
          <md-button class="md-raised signin "flex>SIGN IN</md-button>
      </section>
      <hr></hr>
      <div><span style="display: flex;justify-content: center;">Don't have an account?</span></div>
      <section layout="row"  layout-align="center center">

          <md-button class="md-raised  signup" flex>b1 </md-button>
          <md-button class="md-raised signup" flex>b2 </md-button>
      </section>

      <section layout="row"  layout-align="center center">
        <!--<div flex-xs="100" flex  class="sbutton">-->

          <md-button class="md-fab btngoogle" ><img src="img/icons/google.png" class="mdicon"></md-button>
          <md-button class="md-fab btnfb btnposition"><img src="img/icons/fb.svg" class="mdicon"></md-button>
          <md-button class="md-fab btnyahoo" ><img src="img/icons/yahoo.svg" class="mdicon"></md-button>
           <md-button class="md-fab btnlink "><img src="img/icons/linkedin.svg" class="mdicon"></md-button>
           <md-button class="md-fab btntwitter" md-no-ink><img src="img/icons/twitter.svg" class="mdicon"></md-button>

        <!--</div>-->
      </section>
    </div>
  </div>
  </md-card-content>
</md-card>

</div>
</md-content>

Jatin Bhatti
@jatinhbhatti
Mar 30 2016 08:46
md-content with blue background ... in chrome different view and firefox different view how solve this problem any one can help me
hsiri
@hsiri
Mar 30 2016 09:41
hi everyone :D i have encounter a problem with my dropdown. i have added a filter for the md-option, the filter is working but the dropdown won't close anymore if i select a value on the dropdown. has anyone encountered something like this? thanks!
jkjha
@jkjha
Mar 30 2016 10:31
hi..
can anyone help me to find where is the error here: <div ng-repeat="value in row.entity[\"'+branch_name+'_wu_tester_detail\"]">
I am getting this error: angular.js:13236 Error: [$parse:ueoe] Unexpected end of expression: row.entity[
jmls
@jmls
Mar 30 2016 10:51
try <div ng-repeat="value in row.entity[branch_name + '_wu_tester_detail']">
jkjha
@jkjha
Mar 30 2016 10:58
branch_name is variable here
so I hv put tht inside quote..
again i m trying to find some alternate way and trying to loop through this array: [{"a":123,"b":234},{"a":1233,"b":23232}]
jmls
@jmls
Mar 30 2016 11:02
if you quote it, angular will think it's a string literal
jkjha
@jkjha
Mar 30 2016 11:03
when I give this expression: <div ng-repeat=(name,value) in row.entity["'+branch_name+'_wu_tester_detail"]>{{name}} :: {{value}} </div>
I m getting this error: Error: [ngRepeat:iexp] Expected expression in form of 'item in _collection[ track by _id]' but got '(name,value)'.
If I am going wrong, then what is the best way for this?
FYI.. this works fine .. <div class="" ng-if=row.entity[\"'+branch_name+'_details\"]!=\"NotEnabled\">
jkjha
@jkjha
Mar 30 2016 11:08
even this doesn't works <div ng-repeat=items in row.entity["'+branch_name+'_wu_tester_detail"]>{{item.tester_id}} :: {{item.workunit_id}}</div>
jkjha
@jkjha
Mar 30 2016 11:15
I have posted question here.. please see if anyone can help http://stackoverflow.com/questions/36307152/loop-through-json-array-having-complex-variable
Hector Alexis Hechavarria Cuba
@hahc90
Mar 30 2016 14:37
hey guys, i have a problem, i have this element:
<div class="input-field col s6">
<i class="mdi-action-account-circle prefix light-blue-text"></i>
<input id="name" type="text" name="name" ng-model="dummyInputs.inputFieldInput" length="150">
<label>Name/Company</label>
<span class="error" ng-show="errorName"></span>
</div>
but when i try to put element in my form like :smile:
<div class="input-field col s6">
<i class="mdi-communication-email prefix light-blue-text"></i>
<input id="email" type="email" name="email" ng-model="dummyInputs.inputFieldInput" length="50">
<label>Email</label>
<span class="error" ng-show="errorEmail"></span>
</div>
when i type characters, in the other element appears the same text?
how i can fix that?
James Ireland
@siteshackinc
Mar 30 2016 14:41
your ng-model="" needs to have a unique name
for each input
ng-model="vm.name" for first input, and ng-model="vm.email" for the second, providing you are use var vm = this; in your controller
Hector Alexis Hechavarria Cuba
@hahc90
Mar 30 2016 14:44
ok, dude thanks @siteshackinc
James Ireland
@siteshackinc
Mar 30 2016 14:45
np