ng-options is used to create options list from select drop down.
It traverses through array or object to make the options list.
];
});
[/html]
Note: drop down selected values will be objects if select drop down is created using ng-options.
While using ng-repeat, drop down values for selected ones are strings.
For example:
];
});
[/html]
You can use filter to change order of the drop down elements.
];
});
[/html]
When data source is object rather than array:
});
[/html]
A Noun is the name of a person, place or thing. or Name of anything is noun. For example: Sita…
Misko Hevery, a Google employee, developed AngularJS. First version 1.0 of AngularJS was released in 2012. Now AngularJS is fully…
AngularJS expressions contain operators,literals, and variables. AngularJS expressions can be written inside HTML while JavaScript expressions can't be. AngularJS expressions…
Some sentences are given below. Choose the nouns and mention the type of noun whether they are proper noun, common…
Modules are containers for appication controller. They contain different parts of an application. [html] {{ state + " " +…
Using Directives you can extend HTML attributes. In AngularJS you can define your own directives while it has its own…