Replace Router.getCurrentNavigation() with Router.currentNavigation()

Proprietary

Replaces 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-navigation
mod run . --recipe=org.openrewrite.angular.migration.replace-get-current-navigation

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.