How to synchronise application state with router state in Angular 2

176 Views Asked by At

Is there a best practice approach in Angular2+ for making the URL the single source of truth for application state.

EmberJs has Route Models, each segment of the URL can have a model and the model for each URL segment is resolved from left to right, so nested pages can use the model from parent pages because the nested page model is resolved after the parents.

I'd like to achieve something similar in Angular2 if it is a common or recommended approach.

0

There are 0 best solutions below