I am a beginner in angular 2 and I want to make my first app working. I am using TypeScript. I have the app.component.ts in which I have made a directive to
In your app.component.ts
you define directive: [TodosComponent]
.
The directive property has been removed in RC6 from the @Component()
decorator.
The solution to this, is to:
declarations: []
array.See here for an example of AppModule:
https://angular.io/docs/ts/latest/tutorial/toh-pt3.html