Replace Router.getCurrentNavigation() with Router.currentNavigation()
ProprietaryReplaces calls to the deprecated Router.getCurrentNavigation() method with the Router.currentNavigation() signal, which Angular 21 introduced. Matches the router-current-navigation schematic.
org. openrewrite. angular. migration. replace-get-current-navigationmod run . --recipe= org. openrewrite. angular. migration. replace-get-current-navigationInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.