angular/packages/router/test/integration
Andrew Scott 0bb4bd661e feat(router): Add ability to directly abort a navigation (#60380)
This commit adds the ability to directly abort a navigation through the
`Router.getCurrentNavigation()?.abort()` method. While there are no
feature requests for this, it is a feature that will be necessary for
integration with the navigation API. The API enables better tracking of
an ongoing navigation for SPAs and a site visitor can cancel a
navigation by clicking the stop button in the browser. While this could
technically be done on the transition with an internal jsdoc comment to
hide it from application developers, there's no need.

With this feature, I believe it would be possible to create somewhat of a shim
to integrate with the navigation API even before the router has full support
using the router events to control a deferred navigation that never
commits the URL and always aborts itself on navigation end.

PR Close #60380
2025-04-02 17:30:27 +00:00
..
duplicate_in_flight_navigations.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
eager_url_update_strategy.spec.ts refactor(router): Update tests to not use deprecated string tokens (#60378) 2025-03-28 11:50:11 +00:00
guards.spec.ts refactor(router): Update tests to not use deprecated string tokens (#60378) 2025-03-28 11:50:11 +00:00
integration.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
integration_helpers.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
lazy_loading.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
navigation.spec.ts feat(router): Add ability to directly abort a navigation (#60380) 2025-04-02 17:30:27 +00:00
navigation_errors.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
redirects.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
route_data.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
route_reuse_strategy.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
router_events.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
router_link_active.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00
router_links.spec.ts refactor(router): switching to relative imports within the router package (#60557) 2025-04-01 14:54:05 +00:00