π:1
pipe
is a method of Observables, it is for chaining observable operators. You have to use it on an Observable before calling subscribe
.
In your case a plain JavaScript this.Alloc = res.rates.map((e) => e.Alloc);
might be enough.
π:1
pipe
is a method of Observables, it is for chaining observable operators. You have to use it on an Observable before calling subscribe
.
In your case a plain JavaScript this.Alloc = res.rates.map((e) => e.Alloc);
might be enough.