Sunday, September 13, 2020

Angular Modules

Q Difference between Browser Module and platformBrowserDynamicModule?
  1. A platformBrowserDynamic is a function used to bootstrap an Angular Application.
  2. CommonModule is a module that provides all kinds of services and directives one usually wants to use in an Angular 2 application like ngIf
    1. Common module is platform-independent
  3. Browser Module exports CommonModule and provides a few services specific to the Browser platform.
    1. Browser Module should only be imported in App Module.
    2. Common Module can be imported Anywhere.