May 15, 2018
May 15, 2018
July 2018
Call for speakers:
Thanks for your support!
import { Observable } from "rxjs/Observable";
import "rxjs/add/operator/map";
import "rxjs/add/observable/of";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
import { of } from "rxjs";
Observable.interval(1000)
.map(seconds => `${seconds/1000}s`)
.do(secondsString => console.log(`${secondsString} have passed`)
.subscribe(..)
Observable.interval(1000).pipe(
map(seconds => `${seconds/1000}s`),
do(secondsString => console.log(`${secondsString} have passed`),
...
).subscribe()
Observable.interval(1000)
.map(seconds => `${seconds/1000}s`)
.do(secondsString => console.log(`${secondsString} have passed`)
.subscribe(..)
Observable.interval(1000).pipe(
map(seconds => `${seconds/1000}s`),
tap(secondsString => console.log(`${secondsString} have passed`),
...
).subscribe()
npm instal rxjs-compat
And give us a follow @AngularDragons