Methodician/flight.run

Route params should be subscribed to rather than accessing value directly.

Closed this issue · 0 comments

The general practice is to subscribe to route params (it's an Observable) so that if the route changes without a component reload, we can still respond to it.

Example of less-right way in BlogListComponent.

Example of better practice in ExamplesComponent.