2015-06-01 22:51:00 -07:00
|
|
|
|
|
|
|
.l-main-section
|
2015-06-02 09:05:05 -07:00
|
|
|
h2 onCheck <span class="type">variable</span>
|
|
|
|
p.location-badge.
|
|
|
|
exported from <a href='../annotations'>angular2/annotations</a>
|
|
|
|
|
|
|
|
:markdown
|
|
|
|
Notify a directive when it has been checked.
|
|
|
|
|
|
|
|
This method is called right after the directive's bindings have been checked,
|
|
|
|
and before any of its children's bindings have been checked.
|
|
|
|
|
|
|
|
It is invoked every time even when none of the directive's bindings has changed.
|
|
|
|
|
|
|
|
## Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
@Directive({
|
|
|
|
selector: '[class-set]',
|
|
|
|
lifecycle: [onCheck]
|
|
|
|
})
|
|
|
|
class ClassSet {
|
|
|
|
onCheck() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|