Components Modules
3 sectionsRapid overview
Components Modules
TL;DR
Angular's component and module model: the nine lifecycle hooks, parent/child communication via @Input/@Output, ViewChild/ContentChild queries, standalone components, NgModule structure (declarations/imports/exports), feature and shared modu…
Read →How it works
Read →Quick recall Q&A
Q: What's the difference between constructor and ngOnInit? A: Constructor is for dependency injection and simple initialization. ngOnInit is called after Angular sets up input properties and is the right place for initialization logic, API …
Read →