Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

AngularJS ng-open Directive

AngularJS ng-open Instruction

AngularJS Reference Manual AngularJS Reference Manual


AngularJS Examples

Show or hide by clicking the checkbox

List:

<

input

type=

"checkbox"

ng-model=

"showDetails"

<

details

ng-open=

"showDetails"

   

<

summary

What you learn is not only technology, but also a dream!

<

/summary

   

<

p

  • Runoob Tutorial

<

/p

<

/details

Try it »


Definition and Usage

ng-open The directive sets the open attribute of the details list.

If both the ng-open If the expression returns true, the details list is visible.


Syntax

<

details

ng-open=

"expression"

...

<

/details

elements support this directive.

Parameter value

Value Description
expression If the expression is true, the open attribute of details is set.

AngularJS Reference Manual AngularJS Reference Manual