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