My favorite car:
Volvo BMW Ford [Try it Β»](#) * * * ## Definition and Usage The **ng-selected** directive is used to set the selected attribute of the element in a list. If the expression of the `ng-selected` attribute returns true, the option is selected. * * * ## Syntax The element supports this directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | If the expression is true, the option is selected | * * AngularJS Reference Manual](#)Ng Ng Selected
# AngularJS `ng-selected` Directive
[ AngularJS Reference Manual](#)
* * *
## AngularJS Example
Get the selected option:
Click the checkbox to select the BMW option:
YouTip