Skip to content

Commit 72ce091

Browse files
authored
Merge pull request #53 from VasileDurlesteanu/master
Update README.md
2 parents 88776b7 + ab17715 commit 72ce091

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
@@ -435,9 +435,9 @@ You can download the PDF and Epub version of this repository from the latest run
435435
436436
| Component | Directive |
437437
|---- | ---------
438-
| To register a component we use @Component meta-data annotation | To register directives we use @Directive meta-data annotation |
439-
| Components are typically used to create UI widgets| Directive is used to add behavior to an existing DOM element |
440-
| Component is used to break up the application into smaller components| Directive is use to design re-usable components|
438+
| To register a component we use @Component meta-data annotation | To register a directive we use @Directive meta-data annotation |
439+
| Components are typically used to create UI widgets| Directives are used to add behavior to an existing DOM element |
440+
| Component is used to break down the application into smaller components| Directive is used to design re-usable components|
441441
| Only one component can be present per DOM element | Many directives can be used per DOM element |
442442
| @View decorator or templateurl/template are mandatory | Directive doesn't use View|
443443
@@ -497,11 +497,11 @@ You can download the PDF and Epub version of this repository from the latest run
497497
})
498498
export class AppModule { }
499499
```
500-
The NgModule decorator has five important(among all) options
501-
1. The imports option is used to import other dependent modules. The BrowserModule is required by default for any web based angular application
502-
2. The declarations option is used to define components in the respective module
503-
3. The bootstrap option tells Angular which Component to bootstrap in the application
504-
4. The providers option is used to configure set of injectable objects that are available in the injector of this module.
500+
The NgModule decorator has five important (among all) options:
501+
1. The imports option is used to import other dependent modules. The BrowserModule is required by default for any web based angular application.
502+
2. The declarations option is used to define components in the respective module.
503+
3. The bootstrap option tells Angular which Component to bootstrap in the application.
504+
4. The providers option is used to configure a set of injectable objects that are available in the injector of this module.
505505
5. The entryComponents option is a set of components dynamically loaded into the view.
506506
507507
**[⬆ Back to Top](#table-of-contents)**

0 commit comments

Comments
 (0)