Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Promise result of the Angular navigation in RoutingService #12789

Closed
Platonn opened this issue Jun 15, 2021 · 0 comments · Fixed by #12795
Closed

Expose Promise result of the Angular navigation in RoutingService #12789

Platonn opened this issue Jun 15, 2021 · 0 comments · Fixed by #12795

Comments

@Platonn
Copy link
Contributor

Platonn commented Jun 15, 2021

Let's expose the Promise result of the Angular router.naviagte() via our RoutingService.go return value.
So we need to move out the router logic from router ngrx effect directly to the RoutingService.

This is a slight breaking change so will require migration docs. But no additional schematics needed

@Platonn Platonn self-assigned this Jun 15, 2021
Platonn added a commit that referenced this issue Jun 22, 2021
…ce (#12795)

Exposed Promise result of the Angular navigation in methods of the `RoutingService`: `go()` and `goByUrl()`.
Now Angular Router is called directly from the `RoutingService`, but not from ngrx effects anymore. Dropped the effects as well as the actions triggering them.

Added migration docs and schematics for the breaking changes.

By the way, added the missing param `NavigationExtras` in `RoutingService.goByUrl`.

BREAKING CHANGES
The following ngrx actions have been removed:
- `RoutingActions.RouteGo` (and `RoutingActions.ROUTER_GO`)
- `RoutingActions.RouteGoByUrlAction` (and `RoutingActions.ROUTER_GO_BY_URL`)
- `RoutingActions.RouteBackAction` (and `RoutingActions.ROUTER_BACK`)
- `RoutingActions.RouteForwardAction` (and `RoutingActions.ROUTER_FORWARD`).
Please use instead the methods of the `RoutingService`, respectively: `go()`, `goByUrl()`, `back()`, `forward()`.

closes #12789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants