Javatpoint Logo
Javatpoint Logo

AngularJS ng-open Directive

The AngularJS ng-open directive sets the open attribute of a detailed list. This detailed list is visible if the expression inside the ng-open in true. A special directive is required because interpolation cannot be used inside the open attribute.

It is supported by the <details>element.


Parameter explanation:

expression: It specifies an expression that will set the element's open attribute if it returns true.

Let's take an example to demonstrate the sage of ng-open directive.

See this example:

Test it Now

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA