SL-edi / covid-visualisation

0 stars 0 forks source link

switching regions works, but there has to be an easier way #17

Closed tjanowsk closed 4 years ago

tjanowsk commented 4 years ago

This works, but seems overly complicated. I've created a Subject with the region name in the service and had the component subscribe to it. When the region name is changed, the component unsubscribes from the current http.get and subscribes to a new one.

tjanowsk commented 4 years ago

In the update I have separated the region service from the news service.