Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are the differences between ngmodule and javascript module?
Home
Angular
What are the differences between ngmodule and javascript module?
0
votes
asked
Sep 22, 2023
in
Angular
by
DavidAnderson
What are the differences between ngmodule and javascript module?
angularjs-interivew-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 22, 2023
by
DavidAnderson
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
...