Deep dive Angular2
Just how many directive you know in Angular2?
@NgModule
@Component
Control component
@Injectable
Service as we know it.
@Directive
Use this for creating Angular2 directive.
What is the differences between directive and component? Directive you can use it along with existing HTML mark up. Component stands by itself.
@Pipe
@NgModule
@NgModule({ imports: [ BrowserModule ], declarations: [ MyComponent ], bootstrap: [ MyComponent ] })
@Component
Control component
@Injectable
Service as we know it.
@Directive
Use this for creating Angular2 directive.
What is the differences between directive and component? Directive you can use it along with existing HTML mark up. Component stands by itself.
@Pipe
Comments