File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# What is a Module?
6
6
7
- Most applications have a main method which instantiates, wires, and bootstraps the application.
8
- Angular apps don't have a main method. Instead modules declaratively specify how an application
9
- should be bootstrapped. There are several advantages to this approach:
7
+ Traditional JavaScript embedded in HTML has a main method or similar which instantiates, wires, and bootstraps the application.
8
+ Angular apps don't have a visible main method, but rather declaratively specify on the HTML DOM how an application
9
+ should be bootstrapped as the DOM loads and executes. Modules are where the code associated with that markup exists.
10
+
11
+ There are several advantages to this approach:
10
12
11
13
* The process is more declarative which is easier to understand
12
14
* In unit-testing there is no need to load all modules, which may aid in writing unit-tests.
You can’t perform that action at this time.
0 commit comments