I have a GPS plugin providing locations out of an angular zone. The changes are therefore not detected by angular and the view keeps stuck with the same values.
Of course, I could subscribe to this observable from the controller and do something like that.
$mySourceOutOfZone.subscribe((value)=>{
this.zone.run(() => {
this.value = value;
});
})
And the view will simply use the value like:
<span>{{value}}</span>
But I would like to avoid having to subscribe to the controller and using the imperative style way.
How could I have this observable to run inside an angular zone?