AfterViewInit

Stable

Class

What it does

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

How to use

.

@Component({selector: 'my-cmp', template: `...`}) class MyComponent implements AfterViewInit { ngAfterViewInit() { // ... } }

Class Overview

class AfterViewInit {
ngAfterViewInit() : void

}

Class Description

Class Details

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