export interface OnInit
export interface OnInit
exported from angular2/core defined in angular2/src/core/linker/interfaces.ts (line 79)
Implement this interface to execute custom initialization logic after your directive's data-bound properties have been initialized.
ngOnInit
is called right after the directive's data-bound properties have been checked for the
first time, and before any of its children have been checked. It is invoked only once when the
directive is instantiated.
Example (live example)
Members
ngOnInit()
ngOnInit()
Not Yet Documented