angularjs - Character casing in angular js -
hello have following code section
<select id="ddlsite" ng-model="area.siteid"><option >select</option> <option ng-repeat="item in sites" value="{{item.siteid}}">{{item.siteid}}-{{item.code}}</option> </select>
here class sites have 2 property named : siteid , code when bind drop down code working fine , dropdown display value.
but if change code below above code section:
<select id="ddlsite" ng-model="area.siteid"> <option >select</option> <option ng-repeat="item in sites" value="{{item.siteid}}">{{item.siteid}}-{{item.code}}</option> </select>
see here "i" in {{item.siteid}}
small casing , drop down display blank value.
what may issue {{item.code}}
or {{item.code}}
both working. please help....
Comments
Post a Comment