Skip to content

Commit 9a397cf

Browse files
authored
Merge pull request #17 from manthanank/new-changes
feat: updated
2 parents f15741f + 90d1402 commit 9a397cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- [Configuration](#configuration)
1111
- [Components](#components)
1212
- [Data Binding](#data-binding)
13+
- [One Way Binding](#one-way-binding)
14+
- [Two Way Binding](#two-ways-binding)
1315
- [Directives](#directives)
1416
- [Structural Directives](#structural-directives)
1517
- [Attribute Directives](#attribute-directives)
@@ -270,9 +272,9 @@ export class AppComponent {
270272

271273
## Data binding
272274

273-
### 1. One way binding
275+
### One way binding
274276

275-
### a. From Component to View
277+
a. From Component to View
276278

277279
**Interpolation** -
278280

@@ -401,7 +403,7 @@ export class AppComponent {
401403
402404
[Stackblitz Example](https://stackblitz.com/edit/angular-ivy-bhqsgc?file=src/app/app.component.html)
403405
404-
### b. From View to Component
406+
b. From View to Component
405407
406408
**Event binding** - This allows for binding an event of an HTML element to a method in the component's class. It is denoted by parentheses (()).
407409
@@ -439,7 +441,7 @@ The (change) event can also be specifically implemented by other Angular compone
439441

440442
[☝️Source of Explaination](https://stackoverflow.com/a/51127794/14292971)
441443

442-
### 2. Two ways binding
444+
### Two ways binding
443445

444446
This allows for binding a property of an HTML element to a property in the component's class and vice-versa. This is done by using a combination of property binding and event binding. It is denoted by `[(ngModel)]`.
445447

0 commit comments

Comments
 (0)