Skip to content

Commit

Permalink
Update angular.md
Browse files Browse the repository at this point in the history
Added Lifecycle Hooks of Component
  • Loading branch information
Priti Baban Nandankar authored Oct 19, 2022
1 parent b51d391 commit a2a388b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,40 @@ Angular is an application-design framework and development platform for creating
<input [value]="student.name"
(input)="student.name=$event.target.value">
```
#### Angular Lifecycle Hooks:
- ngOnInit()
```
It get invoked when angular initialize component or directive.
```
- ngOnChanges()
```
It get invoked when angular sets data bound input property i.e. @Input().
```
- ngDoCheck()
```
It get invoked for every changes.
```
- ngAfterContentInit()
```
It get invoked after angular project content in its view.
```
- ngAfterContentChecked()
```
It get invoked after angular checks the binding of content into view.
```
- ngAfterViewInit()
```
It get invoked after angular create component view.
```
- ngAfterViewChecked()
```
It get invoked after angular checks the binding of component view.
```
- ngOnDestroy()
```
It get invoked before angular destroy component or directives.
```

#### Angular CLI commands:

Expand Down

0 comments on commit a2a388b

Please sign in to comment.