Hello Guys,
In this blog we are going to learn about Metadata in angular with examples.
What is Meta Data ?
Basically meta data is used to decorate a class so that it can be configure the expected behaviors of the class in angular.
Basically In angular we have total 4 type of meta data
1) Class Decorator :- Like @Components and @NgModule
2) Property Decorator :- It's mainly used for properties inside a classes.
Ex:- @Input() & @Output()
3) Method Decorator :- It's mainly used for methods inside a classes.
Ex:- @Hostlistner()
4) Parameters Decorator :- It's mainly used for Parameters inside a classes.
Ex:- @Inject()
Comments
Post a Comment