Hi I am trying to get an example of a countdown timer I found searching on Stack found here: Time CountDown in angular 2
This is my code:
Simply write:
import { interval } from 'rxjs'; import { map } from 'rxjs/operators' interval(1000).pipe( map((x) => { /* your code here */ }) );
In RxJS 6+ there's no Observable.interval function.
Observable.interval