Rbroen Angular-Structures
Rbroen Angular-Structures
Keep things organized in folders (Modules are not the default as of ngDoCheck() Detect and act upon changes that Angular
2024). All pages, components, routes, validators, services that can't or won't detect on its own. Called
belong together should be have the same (grand)parent. during every change detection run,
immediately after ngOnChanges() and
Project setup commands - sample ngOnInit().
# When setting up a new project think about how ngAfterContentInit() Respond after Angular projects external
you want it to look. Make a short list of commands content into the component's view / the
to set up your project. Open the new project in view that a directive is in. Called once after
your IDE, if things do not feel right, adjust your the first ngDoCheck().
list and run it again. I have added an example ngAfterViewInit() Respond after Angular initializes the
below. component's views and child views / the
ng new sample view that a directive is in. Called once after