Skip to content

Commit ab17715

Browse files
Update README.md
Fixed grammatical issues, formatting. Question 8 & 10.
1 parent 3b90bba commit ab17715

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ You can download the PDF and Epub version of this repository from the latest run
420420
421421
| Component | Directive |
422422
|---- | ---------
423-
| To register a component we use @Component meta-data annotation | To register directives we use @Directive meta-data annotation |
424-
| Components are typically used to create UI widgets| Directive is used to add behavior to an existing DOM element |
425-
| Component is used to break up the application into smaller components| Directive is use to design re-usable components|
423+
| To register a component we use @Component meta-data annotation | To register a directive we use @Directive meta-data annotation |
424+
| Components are typically used to create UI widgets| Directives are used to add behavior to an existing DOM element |
425+
| Component is used to break down the application into smaller components| Directive is used to design re-usable components|
426426
| Only one component can be present per DOM element | Many directives can be used per DOM element |
427427
| @View decorator or templateurl/template are mandatory | Directive doesn't use View|
428428
@@ -482,11 +482,11 @@ You can download the PDF and Epub version of this repository from the latest run
482482
})
483483
export class AppModule { }
484484
```
485-
The NgModule decorator has five important(among all) options
486-
1. The imports option is used to import other dependent modules. The BrowserModule is required by default for any web based angular application
487-
2. The declarations option is used to define components in the respective module
488-
3. The bootstrap option tells Angular which Component to bootstrap in the application
489-
4. The providers option is used to configure set of injectable objects that are available in the injector of this module.
485+
The NgModule decorator has five important (among all) options:
486+
1. The imports option is used to import other dependent modules. The BrowserModule is required by default for any web based angular application.
487+
2. The declarations option is used to define components in the respective module.
488+
3. The bootstrap option tells Angular which Component to bootstrap in the application.
489+
4. The providers option is used to configure a set of injectable objects that are available in the injector of this module.
490490
5. The entryComponents option is a set of components dynamically loaded into the view.
491491
492492
**[⬆ Back to Top](#table-of-contents)**

0 commit comments

Comments
 (0)