Recently, I have started playing with angular 2. It\'s awesome so far. So, i have started a demo personal project for the sake of learning using angular-cli. <
angular-cli
In the current component's module import RouterModule.
Like:-
import {RouterModule} from '@angular/router'; @NgModule({ declarations:[YourComponents], imports:[RouterModule]
...
It helped me.