* Returns the current `Navigation` object when the router is navigating, * and `null` when idle. * * @deprecated 20.2 Use the `currentNavigation` signal instead.
()
| 368 | * @deprecated 20.2 Use the `currentNavigation` signal instead. |
| 369 | */ |
| 370 | getCurrentNavigation(): Navigation | null { |
| 371 | return untracked(this.navigationTransitions.currentNavigation); |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * The `Navigation` object of the most recent navigation to succeed and `null` if there |