GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • OnInit
  • AfterViewInit
  • Lifecycle hooks guide

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — AfterContentInit • Angular

API

    
      interface AfterContentInit {}
    
    

A callback method that is invoked immediately after Angular has completed initialization of all of the directive's content. It is invoked only once when the directive is instantiated.

@returnsvoid

Usage Notes

The following snippet shows how a component can implement this interface to define its own content initialization method.

@Component({
        selector: 'my-cmp',
        template: `...`,
      })
      class MyComponent implements AfterContentInit {
        ngAfterContentInit() {
          // ...
        }
      }
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.