28 lines
592 B
Plaintext
28 lines
592 B
Plaintext
|
|
.l-main-section
|
|
h2 onInit <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 the first itme.
|
|
|
|
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 only once.
|
|
|
|
## Example:
|
|
|
|
```
|
|
@Directive({
|
|
selector: '[class-set]',
|
|
lifecycle: [onInit]
|
|
})
|
|
class ClassSet {
|
|
onInit() {
|
|
}
|
|
}
|
|
```
|
|
|