Answer the question
In order to leave comments, you need to log in
How to make Subscription work inside router-outlet (angular2)?
If you display it outside the router, everything is fine, but in the router it only works on the first boot (component on the main page). The code is in the constructor, if you push on ngOnInit, nothing changes :/
this.subscription = this._telemetry.telemetryData$
.subscribe(telemetryData => this.telemetryData = telemetryData);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question