-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Hi,
I tried using routes, but its throwing me an error. Here is my code:
import {View, Component} from 'angular2/angular2';
import {Router} from 'angular2/router';
import { Home } from './home';
@Component({
selector:'app'
})
@View({
templateUrl: '../templates/home.html'
})
export class App{
constructor(route:Router){
console.log("app loaded")
}
}
The compilation throws me following error:
ts/index.ts(14,20): error TS2304: Cannot find name 'Router'.
Is it something I am doing wrong??