This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

AfterContentInit

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.

Interface Overview

      
      interface AfterContentInit { 
  ngAfterContentInit(): void
}
    

How To Use

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

Description

See "Lifecycle Hooks Guide".

Members

      
      ngAfterContentInit(): void