Skip to content

Commit 0dc6a51

Browse files
authored
Update README.md
1 parent 7212969 commit 0dc6a51

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
# angular-lifecycle-hooks
1+
# Angular Lifecycle Hooks
2+
3+
Components are the main building blocks of any Angular application, each component goes through eight different stages of the lifecycle from initialization to destruction. Each stage is called a lifecycle hook event.
4+
5+
## Component Lifecyle events
6+
Every Angular component instance has a lifecycle that starts when Angular instantiates the component class. As component loads and unloads from DOM, every life cycle hook triggers sequentially that gives you an opportunity to do something for the component or its child component.
7+
8+
After implementation you will see output in developer tool as like.
9+
10+
![Angular life cycle hooks](https://geeksarray.com/images/blog/angular-ngdocheck-hook.png)
11+
12+
For more details visit - [Angular Lifecycle hooks](https://geeksarray.com/images/blog/angular-ngdocheck-hook.png)

0 commit comments

Comments
 (0)