angular-cn/public/docs/js/latest/api/view/BaseQueryList-class.jade

124 lines
1.5 KiB
Plaintext

p.location-badge.
exported from <a href="/angular2/view.html">angular2/view</a>
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/core/compiler/base_query_list.js#L12">angular2/src/core/compiler/base_query_list.js (line 12)</a>
:markdown
Injectable Objects that contains a live list of child directives in the light Dom of a directive.
The directives are kept in depth-first pre-order traversal of the DOM.
In the future this class will implement an Observable interface.
For now it uses a plain list of observable callbacks.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor()
:markdown
.l-sub-section
h3 [Symbol.iterator]
pre.prettyprint
code.
[Symbol.iterator]()
:markdown
.l-sub-section
h3 add
pre.prettyprint
code.
add(obj)
:markdown
.l-sub-section
h3 fireCallbacks
pre.prettyprint
code.
fireCallbacks()
:markdown
.l-sub-section
h3 onChange
pre.prettyprint
code.
onChange(callback)
:markdown
.l-sub-section
h3 removeCallback
pre.prettyprint
code.
removeCallback(callback)
:markdown
.l-sub-section
h3 reset
pre.prettyprint
code.
reset(newList)
:markdown