AfterViewInit

Stable

Class

What it does

Lifecycle hook that is called after a component's view has been fully initialized.

How to use

.

  1. @Component({selector: 'my-cmp', template: `...`})
  2. class MyComponent implements AfterViewInit {
  3. ngAfterViewInit() {
  4. // ...
  5. }
  6. }

Class Overview

class AfterViewInit {

}

Class Description

Class Details

exported from @angular/core/index, defined in @angular/core/src/metadata/lifecycle_hooks.ts