I was doing this tutorial on reactive forms and stumbled on following problem:
import { Observable, of } from 'rxjs';
here you should import of from rxjs but when I try to it say's:
[ts] Module '"/.../node_modules/rxjs/Rx"' has no exported member 'of'.
Also tried
import 'rxjs/add/observable/of';
which didn't work either.
In the example 'of' is used for following:
getHeroes(): Observable<Hero[]> {
return of(heroes).pipe(delay(this.delayMs)); // simulate latency with delay
}
Any suggestions how to fix this?