I am pretty new to the world of Angular. What is the difference between CommonModule
vs BrowserModule
and why one should be preferred over the other?
What you have to understand is, with Angular, you create modular application and there are two types of modules. One is root module and another is feature module.
CommonModule
but also stuffs that are used for rendering. CommonModule
in your feature modules and BrowserModule
in your root module.