Deep dive Angular2

Just how many directive you know in Angular2?

@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

Popular posts from this blog

OpenCover code coverage for .Net Core

ionic2 cordova build android - Unable resolve gradle 2.2.3

Using Custom DLL with IronPython / Scripts