AfterViewInit

interface

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.

Interface Overview

interface AfterViewInit { 
  ngAfterViewInit(): void
}

How To Use

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

Description

See "Lifecycle Hooks Guide".

Members

ngAfterViewInit(): void

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/core/AfterViewInit