Error: Property timer doesn't exist on type typeof Observable
问题 The code is below import {Component} from 'angular2/core'; import {Observable} from 'rxjs/Rx'; @Component({ selector: 'my-app', template: 'Ticks (every second) : {{ticks}}' }) export class AppComponent { ticks =0; click(){ let timer = Observable.timer(2000,1000); timer.subscribe(t=>this.ticks = t); } } But i am getting an error. The error is in the following line: let timer = Observable.timer(2000,1000); The definition of error is "property timer doesn't exist on type typeof Observable" Why