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
module.id was added in intially when angular2 was at beta version.Since with new version and angular cli support it is not required to add moduleId:module.id,you can remove from .ts files
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