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 |