What are the differences between ngmodule and javascript module?
Below are the main differences between Angular NgModule and javascript module,
NgModule | JavaScript module |
---|---|
NgModule bounds declarable classes only | There is no restriction classes |
List the module's classes in declarations array only | Can define all member classes in one giant file |
It only export the declarable classes it owns or imports from other modules | It can export any classes |
Extend the entire application with services by adding providers to provides array | Can't extend the application with services |
June 15, 2022
243
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular