
Directives in angular can be used to implement life-cycle hooks. Directives are declared with @Directive attribute. In Angular there are 3 types of directives,
Component
Structural
Attribute
Component directives is a directive which comes with a template. Angular components are subset of directives. A component must belong to a NgModule...