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
  • AfterContentInit
  • Lifecycle hooks guide

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — AfterViewInit • Angular

API

    
      interface AfterViewInit {}
    
    

A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.

@returnsvoid

Usage Notes

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

@Component({
        selector: 'my-cmp',
        template: `...`,
      })
      class MyComponent implements AfterViewInit {
        ngAfterViewInit() {
          // ...
        }
      }
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.