MCPcopy Index your code
hub / github.com/angular/angular / getCurrentNavigation

Method getCurrentNavigation

packages/router/src/router.ts:360–362  ·  view source on GitHub ↗

* Returns the current `Navigation` object when the router is navigating, * and `null` when idle. * * @deprecated 20.2 Use the `currentNavigation` signal instead.

()

Source from the content-addressed store, hash-verified

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

Calls 1

untrackedFunction · 0.90