.l-main-section
h2 onInit variable
p.location-badge.
exported from angular2/annotations
defined in angular2/src/core/annotations_impl/annotations.ts (line 1105)
: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() {
}
}
```