AngularJs Select Element, set Label and Value

To set your select’s label and value expressions in AngularJs, you can simply do this example. States and Countries

States have

Code: FL

Name: Florida

Countries have

Code: US

Name: United States

 

State: <select data-ng-options="state.name for state in vm.stateProvinces track by state.code"></select>

Country: <select data-ng-options="country.name for country in vm.countries track by country.code"></select>

AngularJS Directives 2

AngularJs Directives