I have a following drop down which is working fine
<select class="form-control" ng-model="cc.id">
<option value="">Chose Id</option>
<option ng-repeat="account in accounts |unique:'id'" value="{{account.id}}">{{name.id}}</option>
</select>
It gives me following options in the dropdown
101
101
119
120
121
121
While it should be only showing the unique id in options as...
101
119
120
121
Accounts consists of jason array of Account which has act_id (primary key) id fname lname location
Can you please tell me how to fix the unique filter on id so that it displays only unique values Thanks
accountsobject + name