22 lines
521 B
Plaintext
22 lines
521 B
Plaintext
|
|
<h1>onCheck</h1>
|
|
<h2>(const)</h2>
|
|
<div>
|
|
<p>Notify a directive when it has been checked.</p>
|
|
<p>This method is called right after the directive's bindings have been checked,
|
|
and before any of its children's bindings have been checked.</p>
|
|
<p>It is invoked every time even when none of the directive's bindings has changed.</p>
|
|
.l-main-section
|
|
h2 Example:
|
|
pre(class="prettyprint linenums")
|
|
code.
|
|
@Directive({
|
|
selector: '[class-set]',
|
|
lifecycle: [onCheck]
|
|
})
|
|
class ClassSet {
|
|
onCheck() {
|
|
}
|
|
}
|
|
</div>
|