mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ea32c3289a
The `Router` already has the `getCurrentNavigation()` helper function to expose information about the ongoing navigation. `lastSuccessfulNavigation` is actually already exposed in the `Navigation` object. This commit only _slightly_ extends the current API surface by providing access to the `lastSuccessfulNavigation` object outside of an ongoing navigation. fixes #45685 PR Close #49235