AngularJS ng-open instruction
AngularJS examples
By clicking on the checkbox to show or hide <details> list:
<Input type = "checkbox" ng -model = "showDetails">
<Details ng-open = "showDetails ">
<Summary> school is not only technology, but also a dream! </ Summary>
<P> - This tutorial </ p>
</ Details>
<Details ng-open = "showDetails ">
<Summary> school is not only technology, but also a dream! </ Summary>
<P> - This tutorial </ p>
</ Details>
try it"
Definition and Usage
ng-open command is used to set the open property details list.
Ifng-open expression returns true then the details of the list is visible.
grammar
<Details ng-open = "expression "> ... </ details>
<Details> element supports the instruction.
Parameter Value
value | description |
---|---|
expression | If the expression is true details of open attribute is set. |