Angular 2 Error ( 'directives' does not exist in type 'Component' )
I am beginner in Angular 2 and I'm using the final Angular 2 release version. I have a strange problem with it. this is my databinding.component.ts code: import { Component } from '@angular/core'; import {PropertyBindingComponent} from './property-binding.component'; import {EventBindingComponent} from './event-binding.component'; @Component({ selector: 'fa-databinding', templateUrl: 'databinding.component.html', styleUrls: ['databinding.component.css'], directives: [PropertyBindingComponent, EventBindingComponent] }) and this is a peace of my app.module.ts code : import {