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
Sur cette page du site, vous pouvez voir la vidéo en ligne Angular Complete Series | CommonModule and ApplicationModule | Part 23 | Angular11+ durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Tic Tac Technology 28 décembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 81 fois et il a aimé 4 téléspectateurs. Bon visionnage!