ngOnInit: Invoked by Angular when component is initialized
constructor: Constructor is automatically called at the time of creating object of the class
How do we know when component is initialized? Which function is responsible for this?
ngOnInit: Everything is ready at the time of invocation.
constructor: Not everything in component is initialized at the time of invocation
What is "everything" that is ready at the time of invocation?
https://angular.io/api/core/OnInit
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Also, please explain the bold lines in the above quote.