I just started using the new routing library (@angular/router v3.0.0-alpha.7) but following the official docs leads to error below:
browser_adapter.ts:74: EX
You have an error in your app.component.ts
Looks like you declared a directive in the providers array.
import { Component } from '@angular/core';
import { ROUTER_DIRECTIVES } from '@angular/router';
@Component({
selector: 'app',
template: `
Angular 2 is running...
`,
directives: [ROUTER_DIRECTIVES] //here
})
export class AppComponent {
}