@angular/core

OnInit

interface

A lifecycle hook that is called after Angular has initialized all data-bound properties of a directive. Define an ngOnInit() method to handle any additional initialization tasks.

  
    interface OnInit {  ngOnInit(): void;}}
  
  
Jump to details