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