mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9a27c5befb
Use defaults.bzl for the common macros PR Close #63384
Remove Router.getCurrentNavigation migration
Replaces the usages of the deprecated Router.getCurrentNavigation method with the new Router.currentNavigation() signal:
Before
import { Router } from '@angular/router';
export class MyService {
router = inject(Router);
someMethod() {
const currentNavigation = this.router.getCurrentNavigation();
}
}
After
import { Router } from '@angular/router';
export class MyService {
router = inject(Router);
someMethod() {
const currentNavigation = this.router.currentNavigation();
}
}