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

The specified initialization vector (IV) does not match the block size for this algorithm