ngAfterViewInit(){
Observable.interval(3000).timeInterval().subscribe()=>{};
}
Trying to invoke the Observable.interval() method it is throwing a compiler error
"Property interval does not exist in the type observable".
Edit
import { Observable } from 'rxjs/Observable';
Note that the import statement is already included
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…