Router: Legacy Anchor Hashtag Transformation Service
A service is required to transform urls that utilize the legacy anchor hashtag/JSON into action dispatches that will update state with the appropriate settings. This service should only be concerned with dispatching the appropriate actions to update NgRx state, and not concerned with actually updating the url. Updating of the url will be handled by a separate query string builder service.
This service should observe Angular Router event notifications for NavigationStart
. Whenever an event is received for a url that contains only an anchor hash, and does not contain any relevant query string state, this service should parse the anchor as JSON and dispatch any relevant actions, preferably via the appropriate facades, to update state according to the url.
This service should not be concerned with parsing the query string.