Click here to Skip to main content
15,904,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
1. I want to bind the dropdown from this json array for unique domicile name

$scope.domicile = {};
$scope.domicile.users = [
{ DomicileName: 'European', PortFolioName: 'nternational Select x EM ADR', Alias: 'ADR x EM', Percentage: 1.0, Ticker: 'ADR', Category: 'ADRxEM', SortOrder: 1 },
{ DomicileName: 'European', PortFolioName: 'International Select x EM ORD', Alias: 'Ord x EM', Percentage: 4, Ticker: 'ORD', Category: 'ADRxEM', SortOrder: 1 },
{ DomicileName: 'European', PortFolioName: 'International Select with EM ADR', Alias: 'ADR w EM', Percentage: 4, Ticker: 'ADR', Category: 'ADRwEM', SortOrder: '' },
{ DomicileName: 'Developed Market Non-European', PortFolioName: 'International Select x EM ADR', Alias: 'ADR x EM', Percentage: 4, Ticker: 'ADR', Category: 'ADRxEM', SortOrder: 1 }


];

What I have tried:

i have tried a lots of the this as per my knowledge but not able to find the solution.
Posted
Updated 20-Feb-17 1:23am

<select ng-model="ddlUsers" ng-options="user.Alias for user in users track by user.Alias">
 
Share this answer
 
Comments
Arvind_09 20-Feb-17 6:56am    
its does't not works
<select name="repeatSelect" id="repeatSelect" ng-model="data.model">
      <option ng-repeat="option in data.availableOptions" value="{{option.id}}">{{option.name}}</option>
    </select>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900