linkAfterViewInit
npm Package | @angular/core |
---|---|
Module | import { AfterViewInit } from '@angular/core'; |
Source | core/src/metadata/lifecycle_hooks.ts |
Lifecycle hook that is called after a component's view has been fully initialized.
linkInterface Overview
interface AfterViewInit {
ngAfterViewInit(): void
}
linkHow To Use
@Component({selector: 'my-cmp', template: `...`})
class MyComponent implements AfterViewInit {
ngAfterViewInit() {
// ...
}
}