Lets know about Directives in angular 2
Directive in a easy language is a custom HTTM Element
Directive in a easy language is a custom HTTM Element
Angular 2 has the following directives that get called as part of the BrowserModule module.
- ngif
- ngFor
Metadata is used to decorate a class so that it can configure the expected behavior of the class. Following are the different parts for metadata.
Annotations − These are decorators at the class level. This is an array and an example having both the @Component and @Routes decorator.
- Design:paramtypes − These are only used for the constructors and applied only to Typescript.
- propMetadata − This is the metadata which is applied to the properties of the class.
Comments
Post a Comment