I have a json file where one column i want to use in a drop down.
If i use the code below it lists every row in the dropdown.
<div ng-app="myApp" ng-controller="piWidgetsC">
<select ng-model="myItem" ng-options="item.Section_Name for item in names">
<option value="">Filter by Section</option>
<option value="">{{item.Section_Name}}</option></select>
So after a little research i looked at Unique, i added the ui-utils.js to
my file.
So i am trying this and it doesnt work, i don't get anything in the drop
down apart from {{item.Section_Code}}
Here is the code i am using, i feel i am so close but it's a little
frustrating
<div ng-app="myApp" ng-controller="piWidgetsC">
<select ng-model="myItem" ng-options="item.Section_Name for item in names |
unique:'item.Section_Name'">
<option value="">Filter by Section</option>
<option value="">{{item.Section_Name}}</option></select>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.