Skip to content

Commit ccfd1d1

Browse files
committed
Update module question
1 parent c5e1446 commit ccfd1d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,17 @@
419419
@NgModule ({
420420
imports: [ BrowserModule ],
421421
declarations: [ AppComponent ],
422-
bootstrap: [ AppComponent ]
422+
bootstrap: [ AppComponent ],
423+
providers: []
423424
})
424425
export class AppModule { }
425426
```
426-
The NgModule decorator has three options
427+
The NgModule decorator has five important(among all) options
427428
1. The imports option is used to import other dependent modules. The BrowserModule is required by default for any web based angular application
428429
2. The declarations option is used to define components in the respective module
429430
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.
430433
431434
**[⬆ Back to Top](#table-of-contents)**
432435
@@ -1262,7 +1265,7 @@
12621265
**[⬆ Back to Top](#table-of-contents)**
12631266
12641267
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
12661269
```html
12671270
<base href="/">
12681271
```

0 commit comments

Comments
 (0)