* Returns the current `Navigation` object when the router is navigating, * and `null` when idle. * * @deprecated 20.2 Use the `currentNavigation` signal instead.
()
| 358 | * @deprecated 20.2 Use the `currentNavigation` signal instead. |
| 359 | */ |
| 360 | getCurrentNavigation(): Navigation | null { |
| 361 | return untracked(this.navigationTransitions.currentNavigation); |
| 362 | } |
| 363 | |
| 364 | /** |
| 365 | * The `Navigation` object of the most recent navigation to succeed and `null` if there |