AfterViewInit

Stable Class

What it does

Lifecycle hook that is called after a component's view has been fully initialized.

How to use

.

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

Class Overview

class AfterViewInit {
  ngAfterViewInit() : void
}

Class Description

See Lifecycle Hooks Guide.

Class Details

ngAfterViewInit() : void

exported from @angular/core/index, defined in @angular/core/src/metadata/lifecycle_hooks.ts

doc_Angular
2016-10-06 09:46:09
Comments
Leave a Comment

Please login to continue.