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=" for state in vm.stateProvinces track by state.code"></select>

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

AngularJS Directives 2

AngularJs Directives