In angular when the project is created from scratch using ng new command. Angular cli sets up some initial stuff e.g. Creating the first module and first component and then wiring them properly to use. With default project when we run the application and start using directives i.e. inbuilt directives e.g. ngIf,ngFor, and ngSwitch they all provided via commonmodule.
As we know in angular everything is grouped under modules and then we use these modules as required in the project. So is true in the case of CommonModule and application module. These modules are included at the root level making their providers available throughout the application.
Application module re-exports the common module in AppModule which makes available providers of ApplicationModule along with providers of CommonModule due to which when we use these directives at the start it all goes fine without errors.
#CommonModule #ApplicationModule #angular #angular11
Follow us on Twitter:
/ polestutorial
Follow us on Facebook:
/ tutorial-poles-103032308348727
Official Web Link:
http://tutorialpoles.com
On this page of the site you can watch the video online Angular Complete Series | CommonModule and ApplicationModule | Part 23 | Angular11+ with a duration of hours minute second in good quality, which was uploaded by the user Tic Tac Technology 28 December 2020, share the link with friends and acquaintances, this video has already been watched 81 times on youtube and it was liked by 4 viewers. Enjoy your viewing!