Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230523

How to project one observable to another?

$
0
0

I resurrected the wombats from that other post and used this in HomePage:

wombats: Observable<string[]>;

constructor(private _wombats: WombatService) {
}

ngOnInit(): void {
  this.wombats = this._wombats.wombats();
}
<div>{{wombats | async}}</div>

After some time passes, I see “4 wombats, 16 wombats, 36 wombats, 64 wombats”. I wonder what could be different from your situation. Could it possibly be an rxjs version issue? I’m still using ionic 3 / rxjs 5, fwiw.


Viewing all articles
Browse latest Browse all 230523


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>