AngularJS ng selected Directive
AngularJS ng-selected Directive
The ng-selected directive is used to set the selected attribute of an option element in a select list. If the expression inside the ng-selected attribute returns true then the option will be selected. It is necessary as it is more flexible than a simply selected attribute as we can change its value from true to false and vice versa. It is used in option element.
< option ng-selected="expression" >< /option >
|expression||An expression that will set the element's selected attribute if it returns true.|