You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -419,14 +419,17 @@
419
419
@NgModule ({
420
420
imports: [ BrowserModule ],
421
421
declarations: [ AppComponent ],
422
-
bootstrap: [ AppComponent ]
422
+
bootstrap: [ AppComponent ],
423
+
providers: []
423
424
})
424
425
export class AppModule { }
425
426
```
426
-
The NgModule decorator has three options
427
+
The NgModule decorator has five important(among all) options
427
428
1. The imports option is used to import other dependent modules. The BrowserModule is required by default for any web based angular application
428
429
2. The declarations option is used to define components in the respective module
429
430
3. The bootstrap option tells Angular which Component to bootstrap in the application
431
+
4. The providers option is used to configure set of injectable objects that are available in the injector of this module.
432
+
5. The entryComponents option is a set of components dynamically loaded into the view.
430
433
431
434
**[⬆ Back to Top](#table-of-contents)**
432
435
@@ -1262,7 +1265,7 @@
1262
1265
**[⬆ Back to Top](#table-of-contents)**
1263
1266
1264
1267
64. ### What is the purpose of base href tag?
1265
-
The routing application should add <base> element to the index.html as the first child in the <head> tag inorder to indicate how to compose navigation URLs. If app folder is the application root then you can set the href value as below
1268
+
The routing application should add <base> element to the index.html as the first child in the <head> tag in order to indicate how to compose navigation URLs. If app folder is the application root then you can set the href value as below
0 commit comments