angularjs - NG Options select based on object name -



angularjs - NG Options select based on object name -

i have ng-options, using array of objects objects name property label.

when first load module, ng-module contains object foreign array shares same properties. how ng-options recognise , select right option?

so :

var options = [{name:'test'},{name:'test2'}];

they go ng-options

ng-options="options.name alternative in options "

and model set in controller

$scope.modelvar = {name:'test'};

angularjs

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -