@angular/router breaking changes
Updated December 4, 2026
On this page
Latest version 22.3.2, released December 1, 2026. Source repository
Its 22.0.0-next.0 release requires Node.js 22.22.0 or later. Node.js end of life dates.
- From 21.2.25 to 22.3.0: 64 breaking changes in 19 versions.
- From 4.0.0 to 22.3.0: 503 breaking changes in 110 versions.
@angular/router 22.3.0 breaking changes
- Signature changed
RouterFeatures
Was type RouterFeatures = PreloadingFeature | DebugTracingFeature | InitialNavigationFeature | InMemoryScrollingFeature | RouterConfigurationFeature | NavigationErrorHandlerFeature | ComponentInputBindingFeature | ViewTransitionsFeature |... npmjs.com - Signature changed
RouterLink.ɵdir
Was static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, "[routerLink]", never, {"target": {"alias": "target"; "required": false;}; "queryParams": {"alias": "queryParams"; "required": false;}; "fragment": {"alias": "fragment"; "required"... npmjs.com
@angular/router 22.3.0-next.3 breaking changes
- Behavior changed
createUrlTreeFromSnapshot
Query params with null values are now omitted from the URL created by createUrlTreeFromSnapshot. Code that relied on null query params appearing in the URL must be updated. github.com
@angular/router 22.2.4 breaking changes
- Behavior changed
createUrlTreeFromSnapshot
createUrlTreeFromSnapshot no longer keeps query parameters whose values are null in the URL it builds. Code that relied on null params appearing in the URL must change. github.com - Behavior changed
SignalFormControl
SignalFormControl now throws when given an updateOn value it does not support. Code that passed such values will need to change them. github.com - Default changed
Libraries built before v22 that run in JIT mode now default to Eager change detection. Check components from older libraries if their change detection timing matters. github.com - Configuration changed
The compiler CLI now requires @jridgewell/sourcemap-codec 1.6.0 or later. Upgrade that dependency if your install pins an older version. github.com
@angular/router 22.2.1 breaking changes
- Behavior changed
Absolute redirects returned from redirect functions are now limited, so code relying on unrestricted absolute redirects may need to change. github.com - Behavior changed
Duplicate router outlets are now rejected in production builds, so routes that previously worked with duplicate outlets may now fail. github.com - Behavior changed
Router outlets must now match a route before child segments are processed, which can change navigation results for some route setups. github.com - Behavior changed
The URL sanitizer now blocks dangerous data: and vbscript: URLs, so code that relied on them passing through may now be sanitized. github.com
@angular/router 22.2.0 breaking changes
- Removed
ɵnonBlocking
ɵnonBlocking was removed in @angular/router 22.2.0 npmjs.com - Removed
ɵResourceContext
ɵResourceContext was removed in @angular/router 22.2.0 npmjs.com - Removed
ɵResourceResult
ɵResourceResult was removed in @angular/router 22.2.0 npmjs.com - Removed
ɵwithRouterResources
ɵwithRouterResources was removed in @angular/router 22.2.0 npmjs.com - Signature changed
RedirectCommand
Was class RedirectCommand; now class RedirectCommand extends Error. npmjs.com - Signature changed
RouterFeatures
Was type RouterFeatures = PreloadingFeature | DebugTracingFeature | InitialNavigationFeature | InMemoryScrollingFeature | RouterConfigurationFeature | NavigationErrorHandlerFeature | ComponentInputBindingFeature | ViewTransitionsFeature |... npmjs.com - Signature changed
withExperimentalAutoCleanupInjectors
Was function withExperimentalAutoCleanupInjectors(): ExperimentalAutoCleanupInjectorsFeature; now function withExperimentalAutoCleanupInjectors(): AutoCleanupInjectorsFeature. npmjs.com
@angular/router 22.2.0-next.6 breaking changes
- Behavior changed
The router now decides blocking state solely from resource loading status. Navigations that relied on the previous blocking rules may behave differently. github.com
Older versions
109 older versions, each with its first changes. Sign up to see every change
Show 109 older versions
@angular/router 22.2.0-next.5 breaking changes
- Behavior changed
The router no longer starts its own view transition when the browser already provides one. Code that depended on the router's view transition running in that case will see different behavior. github.com
@angular/router 22.2.0-next.2 breaking changes
- Behavior changed
Protocol-relative URLs are now handled only during URL serialization. Code that relied on the previous router handling of them may need to change. github.com
@angular/router 22.1.6 breaking changes
- Signature changed
ChildrenOutletContexts.ɵprov
Was static ɵprov: i0.ɵɵInjectableDeclaration<ChildrenOutletContexts>; now static ɵprov: i0.ɵɵInjectableDeclaration<any>. npmjs.com - Signature changed
DefaultTitleStrategy.ɵprov
Was static ɵprov: i0.ɵɵInjectableDeclaration<DefaultTitleStrategy>; now static ɵprov: i0.ɵɵInjectableDeclaration<any>. npmjs.com
And 8 more in this version.
@angular/router 22.1.3 breaking changes
- Removed
ɵwithActivatedRouteInjectors
ɵwithActivatedRouteInjectors was removed in @angular/router 22.1.3 npmjs.com
@angular/router 22.1.0 breaking changes
- Signature changed
RouterLinkActive.routerLinkActive
Was routerLinkActive: string[] | string; now routerLinkActive: string[] | string | null | undefined. npmjs.com - Signature changed
RouterLinkActive.routerLinkActiveOptions
Was routerLinkActiveOptions: {exact: boolean;} | Partial<IsActiveMatchOptions>; now routerLinkActiveOptions: {exact: boolean;} | Partial<IsActiveMatchOptions> | null | undefined. npmjs.com
@angular/router 22.0.0 breaking changes
- Removed
DefaultExport.default
DefaultExport.default was removed in @angular/router 22.0.0 npmjs.com - Signature changed
CanMatch.canMatch
Was canMatch(route: Route, segments: UrlSegment[], currentSnapshot?: PartialMatchRouteSnapshot): MaybeAsync<GuardResult>; now canMatch(route: Route, segments: UrlSegment[], currentSnapshot: PartialMatchRouteSnapshot)... npmjs.com
And 5 more in this version.
@angular/router 22.0.0-rc.1 breaking changes
- Signature changed
TitleStrategy.getResolvedTitleForRoute
The return type was previously 'any' and is now string or undefined. Code that reads the returned value may need to be adjusted. npmjs.com
@angular/router 22.0.0-next.9 breaking changes
- Default changed
paramsInheritanceStrategy
Route parameters are now inherited from all parent routes by default. To keep the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration. github.com
@angular/router 22.0.0-next.7 breaking changes
- Removed
TypeScript versions older than 6.0 are no longer supported. Upgrade TypeScript before using this release. github.com - Removed
ComponentFactory
ComponentFactory is gone. Pass the component class directly to APIs such as ViewContainerRef.createComponent. github.com
And 4 more in this version.
@angular/router 22.0.0-next.5 breaking changes
- Removed
The built-in Hammer.js integration was removed. Provide your own implementation. github.com - Behavior changed
Elements matching multiple selectors now throw at compile time. github.com
And 1 more in this version.
@angular/router 22.0.0-next.4 breaking changes
- Removed
ChangeDetectorRef.checkNoChanges
checkNoChanges was removed. In tests use fixture.detectChanges() instead. github.com - Behavior changed
Leave animations are no longer limited to the element being removed. github.com
@angular/router 22.0.0-next.2 breaking changes
- Removed
createNgModuleRef
createNgModuleRef was removed. Use createNgModule instead. github.com
@angular/router 22.0.0-next.0 breaking changes
- Removed
Node.js v20 is no longer supported; the minimum supported versions are now v22.22.0 and v24.13.1. Upgrade Node.js before using this release. github.com - Removed
getAngularLib
getAngularLib was removed. Use getAngularJSGlobal instead. github.com
And 7 more in this version.
@angular/router 21.2.25 breaking changes
- Behavior changed
Outlets must now match a route before the router processes child segments, which can change how some navigations resolve. Check route configurations that use named outlets. github.com - Behavior changed
Production builds now reject duplicate router outlets, which were previously accepted. Remove duplicate outlet names from route configurations. github.com
@angular/router 21.2.21 breaking changes
- Behavior changed
Meta
The platform-browser Meta service no longer accepts event handler attributes. Code that relies on them in Meta tags must change. github.com
@angular/router 21.2.16 breaking changes
- Behavior changed
Platform-server now throws when it encounters suspicious URLs and limits protocol-relative URLs. Code that relied on those URLs passing through may need to change. github.com
@angular/router 21.2.13 breaking changes
- Behavior changed
Event attribute bindings in host bindings are now disallowed unconditionally, so code that relied on them must move the logic elsewhere. github.com
@angular/router 21.2.12 breaking changes
- Behavior changed
Submitting a signal form while a previous submit is still running is now blocked, so code that relies on overlapping submits must wait for the first to finish. github.com
@angular/router 21.2.10 breaking changes
- Signature changed
ɵRestoredState
Was type RestoredState = {[k: string]: any; navigationId: number; ɵrouterPageId?: number;}; now type RestoredState = {[k: string]: any; navigationId: number; ɵrouterPageId?: number; ɵrouterUrl?: string;}. npmjs.com
@angular/router 21.2.9 breaking changes
- Behavior changed
router
The router URL parser now collapses multiple leading slashes in URLs. Code relying on the previous parsing of leading slashes may need review. github.com
@angular/router 21.2.4 breaking changes
- Removed
The release reverts the earlier addition of nested animations support in core. Code that relied on nested animations may stop behaving as before. github.com - Behavior changed
Translations of iframe src are now disallowed. Templates that translate iframe src will no longer get translated values. github.com
And 1 more in this version.
@angular/router 21.2.0 breaking changes
- Signature changed
CanMatch.canMatch
Was canMatch(route: Route, segments: UrlSegment[]): MaybeAsync<GuardResult>; now canMatch(route: Route, segments: UrlSegment[], currentSnapshot?: PartialMatchRouteSnapshot): MaybeAsync<GuardResult>. npmjs.com - Signature changed
CanMatchFn
Was type CanMatchFn = (route: Route, segments: UrlSegment[]) => MaybeAsync<GuardResult>; now type CanMatchFn = (route: Route, segments: UrlSegment[], currentSnapshot?: PartialMatchRouteSnapshot) => MaybeAsync<GuardResult>. npmjs.com
And 11 more in this version.
@angular/router 21.1.6 breaking changes
- Behavior changed
Angular now applies only known attributes from HTML in translated ICU content and drops unknown ones. Check translated templates that rely on custom or unknown attributes. github.com
@angular/router 21.1.0 breaking changes
- Removed
ɵprovideSometimesSyncRecognize
ɵprovideSometimesSyncRecognize was removed in @angular/router 21.1.0 npmjs.com - Removed
ɵwithPlatformNavigation
ɵwithPlatformNavigation was removed in @angular/router 21.1.0 npmjs.com
And 3 more in this version.
@angular/router 21.1.0-next.4 breaking changes
- Renamed
FieldContext.field
The field property on FieldContext is renamed to fieldTree, so code reading it must use the new name. github.com - Renamed
ValidationError.field
The field property on ValidationError is renamed to fieldTree, so code reading it must use the new name. github.com
And 1 more in this version.
@angular/router 21.0.6 breaking changes
- Renamed
FieldContext.field
The field property on FieldContext was renamed to fieldTree; update code that reads the old name. github.com - Renamed
ValidationError.field
The field property on ValidationError was renamed to fieldTree; update code that reads the old name. github.com
And 1 more in this version.
@angular/router 21.0.0 breaking changes
- Removed
UpgradeAdapter
UpgradeAdapter is no longer available. Use upgrade/static instead. github.com - Behavior changed
Navigations may finish later in the microtask queue, which can break tests that depend on exact timing. Await all navigations before making assertions in tests. github.com
And 11 more in this version.
@angular/router 21.0.0-next.9 breaking changes
- Behavior changed
Router.parseUrl
Router.parseUrl now surfaces parse errors rather than silently accepting bad input, so code that calls it with malformed URLs may now see errors. github.com - Behavior changed
UrlSerializer
The router now uses a custom UrlSerializer's handling of query parameters. Code that relied on the previous default query parameter handling may see different URLs. github.com
@angular/router 21.0.0-next.8 breaking changes
- Behavior changed
Scroll restoration now uses instant scroll behavior for back and forward traversals. github.com - Behavior changed
Scroll restoration
Scroll restoration on traversals now uses instant scroll behavior. github.com
@angular/router 21.0.0-next.6 breaking changes
- Behavior changed
newInput
Signal inputs on custom elements are now read directly rather than by calling them as functions. github.com - Behavior changed
signal input getter
Signal inputs in custom elements are now read directly instead of by calling them; update code that invokes the getter. github.com
@angular/router 21.0.0-next.4 breaking changes
- Removed
interpolation
The interpolation option on Components was removed; only the default {{ ... }} is supported. github.com - Removed
moduleId
The moduleId property was removed from Component metadata. github.com
And 4 more in this version.
@angular/router 21.0.0-next.3 breaking changes
- Removed
TypeScript versions less than 5.9 are no longer supported; upgrade TypeScript. github.com - Behavior changed
TypeScript versions less than 5.9 are no longer supported; upgrade TypeScript. github.com
And 6 more in this version.
@angular/router 21.0.0-next.2 breaking changes
- Removed
ignoreChangesOutsideZone
ignoreChangesOutsideZone is no longer available for configuring ZoneJS change detection. github.com - Removed
UpgradeAdapter
UpgradeAdapter is no longer available; use upgrade/static instead. github.com
And 4 more in this version.
@angular/router 21.0.0-next.1 breaking changes
- Removed
NgComponentOutlet.ngModuleFactory
The ngModuleFactory input of NgComponentOutlet has been removed. github.com - Removed
ngModuleFactory
The ngModuleFactory input of NgComponentOutlet was removed. github.com
And 2 more in this version.
@angular/router 21.0.0-next.0 breaking changes
- Behavior changed
The compiler now fails when the emitDeclarationOnly TypeScript option is enabled, so projects using it must turn it off. github.com - Behavior changed
compiler-cli
The Angular compiler now produces an error when the emitDeclarationOnly TypeScript compiler option is enabled, since this mode is not supported. Disable that option in your tsconfig. github.com
And 1 more in this version.
@angular/router 20.3.34 breaking changes
- Behavior changed
Requests to same-origin absolute URLs now get XSRF protection, so the XSRF token header may be sent where it was not before. Check that your server accepts this. github.com
@angular/router 20.0.0 breaking changes
- Removed
Upgrade TypeScript to 5.8 or later. github.com - Removed
ViewTransitionInfo.transition.finished
ViewTransitionInfo.transition.finished was removed in @angular/router 20.0.0 npmjs.com
And 16 more in this version.
@angular/router 20.0.0-rc.2 breaking changes
- Behavior changed
The minimum supported Node.js version is raised to 20.19, 22.12, and 24.0. Upgrade Node.js before using this release. github.com
@angular/router 20.0.0-next.9 breaking changes
- Removed
TestBed.flushEffects
TestBed.flushEffects() was removed. Call TestBed.tick() instead. github.com - Removed
useNgZoneOnStable
The useNgZoneOnStable option is removed. Use the interval option instead. github.com
And 3 more in this version.
@angular/router 20.0.0-next.8 breaking changes
- Renamed
provideExperimentalZonelessChangeDetection
The experimental zoneless provider is renamed to provideZonelessChangeDetection because the API is now in Developer Preview. Update imports and calls. github.com - Behavior changed
An 'in' in a template expression now refers to the operator, so existing template expressions using it may behave differently. github.com
And 2 more in this version.
@angular/router 20.0.0-next.6 breaking changes
- Behavior changed
Animations now flush after automatic change detection or ApplicationRef.tick. Tests that expected removed DOM to still be present may need updating. github.com
@angular/router 20.0.0-next.5 breaking changes
- Removed
Angular no longer supports Node.js 18 or Node.js 22.0 to 22.10. Upgrade Node.js to at least 20.11.1 before upgrading Angular. github.com - Signature changed
Route
The guards arrays on Route no longer include any in the type union. Use functional guards or ProviderToken values instead. github.com
@angular/router 19.0.0 breaking changes
- Removed
@angular/router 19.0.0 requires TypeScript 5.5 or later github.com - Removed
BrowserModule.withServerTransition
Use the APP_ID injection token to set the application id instead. github.com
And 16 more in this version.
@angular/router 19.0.0-rc.0 breaking changes
- Signature changed
OutletContext.injector
The setter for injector on OutletContext was removed, so code that assigns to it must stop doing so. npmjs.com
@angular/router 19.0.0-next.0 breaking changes
- Signature changed
Resolve
Resolve implementations may now return a RedirectCommand, so code that consumes or implements Resolve may need to handle it. github.com
@angular/router 18.0.0 breaking changes
- Behavior changed
When a guard returns a UrlTree as a redirect and the initial navigation used replaceUrl, the redirect now also replaces the URL. Return a RedirectCommand with new options to avoid this. github.com - Behavior changed
RouterOutlet
Routed components now take providers only from the route injector hierarchy and never from the RouterOutlet. Providers that were only available through the outlet's component must be provided on the routes instead. github.com
And 8 more in this version.
@angular/router 18.0.0-next.6 breaking changes
- Removed
matchesElement
The deprecated matchesElement method was removed from AnimationDriver because it was unused. Code calling it must stop doing so. github.com
@angular/router 18.0.0-next.3 breaking changes
- Behavior changed
RouterOutlet
Routed components only get providers from the route injector hierarchy. Providers available only to the component that defines the RouterOutlet are no longer available to route components. github.com
@angular/router 18.0.0-next.2 breaking changes
- Behavior changed
A redirect returned as a UrlTree now uses replaceUrl if the initial navigation also used it. Return a RedirectCommand with the desired NavigationBehaviorOptions to change this. github.com
@angular/router 18.0.0-next.1 breaking changes
- Behavior changed
RouterOutlet
Routed components only get providers from the route injector hierarchy. Providers available only to the component that defines the RouterOutlet are no longer available to route components. github.com
@angular/router 18.0.0-next.0 breaking changes
- Signature changed
Route
Guards can now return RedirectCommand for redirects in addition to UrlTree. Code that types guard return values as only boolean or UrlTree needs to be adjusted. github.com
@angular/router 17.0.0 breaking changes
- Removed
ExtraOptions.malformedUriErrorHandler
ExtraOptions.malformedUriErrorHandler was removed in @angular/router 17.0.0 npmjs.com - Removed
Router.malformedUriErrorHandler
Router.malformedUriErrorHandler was removed in @angular/router 17.0.0 npmjs.com
And 5 more in this version.
@angular/router 17.0.0-rc.1 breaking changes
- Behavior changed
RouterTestingHarness
If a component is expected but navigation fails, RouterTestingHarness now throws instead of continuing silently. Tests relying on the old behavior may need updating. github.com
@angular/router 17.0.0-next.8 breaking changes
- Default changed
paramsInheritanceStrategy
Routes with loadComponent now default paramsInheritanceStrategy to emptyOnly. To keep inheriting parent data in child routes, set paramsInheritanceStrategy to always. github.com
@angular/router 17.0.0-next.6 breaking changes
- Removed
setupTestingRouter
Use RouterModule.forRoot or provideRouter to set up the Router in tests. github.com - Behavior changed
Redirects after an absolute redirect are now followed. Check route configurations for redirect loops that were previously hidden. github.com
@angular/router 17.0.0-next.5 breaking changes
- Removed
TypeScript versions older than 5.2 are no longer supported. Upgrade TypeScript before using this release. github.com - Removed
Node.js v16 is no longer supported and the minimum is now 18.13.0. Upgrade Node.js before using this release. github.com
@angular/router 17.0.0-next.3 breaking changes
- Removed
Router.urlHandlingStrategy
The Router property is no longer public. Configure it through provideRouter or RouterModule.forRoot instead. npmjs.com - Behavior changed
Host bindings and ngDoCheck of dynamically created OnPush components now run only when the component is dirty, as OnPush intends. github.com
@angular/router 17.0.0-next.2 breaking changes
- Removed
malformedUriErrorHandler
The Router property is no longer public. Configure it through provideRouter or RouterModule.forRoot instead. github.com - Removed
Router.canceledNavigationResolution
The Router property is no longer public. Configure it through provideRouter or RouterModule.forRoot instead. npmjs.com
And 3 more in this version.
@angular/router 16.0.0 breaking changes
- Removed
View Engine libraries no longer work because ngcc was removed. Use Ivy-compatible library versions. github.com - Removed
Angular v16 supports Node.js v16 and v18, so upgrade Node.js before using it. github.com
And 19 more in this version.
@angular/router 16.0.0-rc.4 breaking changes
- Configuration changed
Users running SSR with JIT mode must add an import of @angular/compiler before bootstrapping the application. Angular CLI users are not affected. github.com
@angular/router 16.0.0-rc.3 breaking changes
- Behavior changed
TransferState
TransferState is now exported as a type, so value usages may need to change. github.com
@angular/router 16.0.0-next.7 breaking changes
- Removed
BrowserTransferStateModule
BrowserTransferStateModule was removed. TransferState can be injected without providing the module, so remove references to it. github.com - Removed
IterableDiffers.factories
The public factories property of IterableDiffers was dropped. github.com
And 4 more in this version.
@angular/router 16.0.0-next.6 breaking changes
- Removed
EventManager.addGlobalEventListener
The method was removed because Ivy does not use it. github.com
@angular/router 16.0.0-next.5 breaking changes
- Removed
Build output no longer includes FESM2015; ES2020 and FESM2020 are replaced by ES2022 and FESM2022. github.com - Behavior changed
NgTemplateOutlet
Add the missing properties to the context type or wrap the context in $any(...). github.com
@angular/router 16.0.0-next.4 breaking changes
- Signature changed
renderApplication
Pass a bootstrapping function that returns a Promise<ApplicationRef> instead. github.com
@angular/router 16.0.0-next.3 breaking changes
- Removed
ComponentFactoryResolver
Stop passing a factory resolver to the router and use ViewContainerRef.createComponent. github.com - Behavior changed
APP_ID
When bootstrapping multiple applications on one page, provide APP_ID explicitly. github.com
@angular/router 16.0.0-next.2 breaking changes
- Removed
renderModuleFactory
Use renderModule instead. github.com
@angular/router 16.0.0-next.1 breaking changes
- Removed
Upgrade TypeScript to a supported version before upgrading Angular. github.com - Removed
Angular v16 supports Node.js v16 and v18; move to one of those before upgrading. github.com
And 1 more in this version.
@angular/router 16.0.0-next.0 breaking changes
- Removed
View Engine libraries no longer work and must be rebuilt for Ivy. github.com - Behavior changed
MockPlatformLocation
Tests that rely on BrowserPlatformLocation may need to override the PlatformLocation provider again. github.com
And 2 more in this version.
@angular/router 15.0.0 breaking changes
- Removed
ExtraOptions.relativeLinkResolution
ExtraOptions.relativeLinkResolution was removed in @angular/router 15.0.0 npmjs.com - Removed
relativeLinkResolution
The relativeLinkResolution option is no longer configurable in the Router. Remove it from router configuration. github.com
And 28 more in this version.
@angular/router 14.0.0 breaking changes
- Removed
initialNavigation
The deprecated initialNavigation: 'enabled' value is removed. Use initialNavigation: 'enabledBlocking' instead. github.com - Behavior changed
The router takes only the first value emitted by a resolver before navigating, instead of waiting for completion and using the last value. github.com
And 22 more in this version.
@angular/router 13.0.0 breaking changes
- Removed
ɵangular_packages_router_router_a
ɵangular_packages_router_router_a was removed in @angular/router 13.0.0 npmjs.com - Removed
ɵangular_packages_router_router_b
ɵangular_packages_router_router_b was removed in @angular/router 13.0.0 npmjs.com
And 31 more in this version.
@angular/router 13.0.0-next.13 breaking changes
- Removed
Users must run Node.js v12.20.0 or later. github.com
@angular/router 13.0.0-next.12 breaking changes
- Removed
Users must upgrade TypeScript to 4.4.2 or later. github.com - Signature changed
SwUpdate.activateUpdate
Type-checking may fail in some cases; update types to the new return type. github.com
And 1 more in this version.
@angular/router 13.0.0-next.10 breaking changes
- Removed
WrappedValue
No replacement is available; remove its usage from code and libraries. github.com
@angular/router 13.0.0-next.9 breaking changes
- Removed
DeprecatedLoadChildren
Remove usages of this type; string loadChildren is no longer supported. npmjs.com - Removed
NgModuleFactoryLoader
These classes were removed from @angular/core and must no longer be used. github.com
And 3 more in this version.
@angular/router 13.0.0-next.7 breaking changes
- Behavior changed
Router
Hybrid apps relying on navigationId on initial navigations must subscribe to NavigationCancel events and call location.replaceState themselves. github.com
@angular/router 13.0.0-next.5 breaking changes
- Behavior changed
RouterTestingModule
Location.go no longer emits a popstate event in tests; simulateHashChange now triggers both hashchange and popstate. Tests relying on location.go to update the Router should switch to simulateHashChange. github.com
@angular/router 12.0.0 breaking changes
- Removed
Distributed npm packages no longer include minified UMD bundles, so code or tooling that loads those files must change. github.com - Removed
Angular no longer supports Node.js v10, so upgrade Node.js before using this release. github.com
And 7 more in this version.
@angular/router 12.0.0-next.7 breaking changes
- Removed
XhrFactory
Import XhrFactory from @angular/common instead of @angular/common/http; the old re-export is deprecated temporarily. github.com
@angular/router 12.0.0-next.6 breaking changes
- Behavior changed
DOM elements are now removed when the root view is destroyed; SSR users must save the HTML before destroying the app, and tests may need setup changes. github.com - Behavior changed
ActivatedRouteSnapshot.fragment
Strict null checks now report fragment as possibly null; add a null check. github.com
@angular/router 12.0.0-next.5 breaking changes
- Default changed
emitDistinctChangesOnlyDefaultValue
The default changed to true, so QueryList.changes emits less often; set emitDistinctChangesOnly explicitly to keep old behavior if needed. github.com
@angular/router 12.0.0-next.4 breaking changes
- Signature changed
APP_INITIALIZER
Initializer return type is now Promise<unknown> | Observable<unknown> | void; explicit Provider annotations may be needed to avoid TS2742. github.com - Signature changed
PlatformLocation.onPopState
onPopState and onHashChange now return functions that remove the handler instead of void. github.com
@angular/router 12.0.0-next.3 breaking changes
- Signature changed
HttpParams
HttpParams methods now accept string | number | boolean values; subclasses overriding these methods must update their signatures. github.com - Signature changed
RouterLinkActive.routerLinkActiveOptions
The type of routerLinkActiveOptions was widened; code reading this property may need updating. npmjs.com
@angular/router 11.0.0 breaking changes
- Removed
initialNavigation
The initialNavigation option no longer accepts legacy_disabled, legacy_enabled, true or false. legacy_enabled is now enabledNonBlocking. github.com - Removed
NavigationExtras.preserveQueryParams
NavigationExtras.preserveQueryParams was removed in @angular/router 11.0.0 npmjs.com
And 16 more in this version.
@angular/router 10.0.0 breaking changes
- Signature changed
CanLoad.canLoad
Was canLoad(route: Route, segments: UrlSegment[]): Observable<boolean> | Promise<boolean> | boolean; now canLoad(route: Route, segments: UrlSegment[]): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree. npmjs.com - Signature changed
UrlMatcher
Was type UrlMatcher = (segments: UrlSegment[], group: UrlSegmentGroup, route: Route) => UrlMatchResult; now type UrlMatcher = (segments: UrlSegment[], group: UrlSegmentGroup, route: Route) => UrlMatchResult | null. npmjs.com
@angular/router 10.0.0-rc.6 breaking changes
- Behavior changed
Navigation to the current URL is now judged against the browser URL, which can change navigation behavior. github.com
@angular/router 10.0.0-rc.0 breaking changes
- Removed
Closure Compiler advanced optimizations are no longer supported with the published packages; use source builds or SIMPLE compilation level. github.com
@angular/router 10.0.0-next.8 breaking changes
- Removed
TypeScript 3.8 is no longer supported; update to TypeScript 3.9. github.com
@angular/router 10.0.0-next.7 breaking changes
- Signature changed
ModuleWithProviders
Add a type parameter to ModuleWithProviders; a migration updates application code, but libraries that omit it will fail to build. github.com
@angular/router 10.0.0-next.6 breaking changes
- Removed
TypeScript 3.6 and 3.7 are no longer supported; update to TypeScript 3.8 or later. github.com - Removed
Angular npm packages no longer ship esm5 and fesm5 formats; downlevel to es5 yourself if you build without the Angular CLI. github.com
And 2 more in this version.
@angular/router 10.0.0-next.4 breaking changes
- Behavior changed
CanLoad
CanLoad guard may now return UrlTree in @angular/router 10.0.0-next.4 github.com
@angular/router 10.0.0-next.3 breaking changes
- Behavior changed
DatePipe
Formatting with the b or B format codes now renders day periods that span midnight correctly, so output changes for formatDate() and DatePipe users of those codes. github.com
@angular/router 10.0.0-next.0 breaking changes
- Behavior changed
UrlMatcher
UrlMatcher's type now reflects that it could always return null. If you implemented your own Router or Recognizer class, update it to handle a matcher returning null. github.com
@angular/router 9.0.0-next.12 breaking changes
- Removed
TypeScript 3.4 and 3.5 are no longer supported. Users must upgrade to TypeScript 3.6 before using this release. github.com
@angular/router 9.0.0-next.11 breaking changes
- Removed
FormsModule.withConfig
Use the FormsModule directly instead of FormsModule.withConfig. github.com - Removed
ngForm
Use the ng-form element selector instead of ngForm. github.com
And 4 more in this version.
@angular/router 9.0.0-next.10 breaking changes
- Removed
RenderComponentType
Use RendererType2 instead of the removed RenderComponentType type. github.com - Removed
Renderer
Use Renderer2 instead of the removed Renderer type. github.com
And 2 more in this version.
@angular/router 9.0.0-next.9 breaking changes
- Removed
versionedFiles
Remove versionedFiles from asset groups in ngsw-config.json and use files instead. github.com
@angular/router 8.0.0 breaking changes
- Removed
TypeScript 3.1 and 3.2 are no longer supported. Update TypeScript to 3.3 or later. github.com - Removed
DOCUMENT
The DOCUMENT token is no longer exported from platform-browser. Import it from @angular/common instead. github.com
And 35 more in this version.
@angular/router 8.0.0-rc.5 breaking changes
- Removed
TestBed.deprecatedOverrideProvider
TestBed.deprecatedOverrideProvider was removed, so tests using it must change. github.com - Signature changed
ViewChild
Every @ViewChild and @ContentChild query must now specify a static flag saying whether it is static or dynamic. github.com
@angular/router 8.0.0-rc.0 breaking changes
- Removed
DOCUMENT
The deprecated DOCUMENT token was removed from platform-browser, so code importing it must change. github.com
@angular/router 7.0.0 breaking changes
- Signature changed
CanLoad.canLoad
Was canLoad(route: Route): Observable<boolean> | Promise<boolean> | boolean; now canLoad(route: Route, segments: UrlSegment[]): Observable<boolean> | Promise<boolean> | boolean. npmjs.com
@angular/router 6.0.0 breaking changes
- Removed
ɵa
ɵa was removed in @angular/router 6.0.0 npmjs.com - Removed
ɵb
ɵb was removed in @angular/router 6.0.0 npmjs.com
And 11 more in this version.
@angular/router 5.0.0 breaking changes
- Removed
initialNavigation
The values true, false, legacy_enabled and legacy_disabled for the initialNavigation router parameter were removed. Use enabled or disabled instead. github.com - Removed
NavigationStart.constructor
new NavigationStart() was removed in @angular/router 5.0.0 npmjs.com
And 12 more in this version.
@angular/router 4.0.0 breaking changes
- Removed
__router_private__
__router_private__ was removed in @angular/router 4.0.0 npmjs.com - Signature changed
ActivatedRoute.children
Was children: ActivatedRoute[]; now readonly children: ActivatedRoute[]. npmjs.com
And 33 more in this version.
@angular/router 4.0.0-rc.4 breaking changes
- Removed
equalsTo
The equalsTo validator is gone. Code using it must be changed. github.com - Behavior changed
Only components, directives, pipes and NgModules are created eagerly now. Providers are eager only when injected into one of them. github.com
And 3 more in this version.
@angular/router 4.0.0-rc.3 breaking changes
- Behavior changed
Synthetic properties and listeners now throw by default instead of being silently accepted. github.com
@angular/router 4.0.0-beta.7 breaking changes
- Removed
Angular 4 supports only TypeScript 2.1, so projects on TypeScript 1.8 must upgrade. github.com
@angular/router 4.0.0-beta.3 breaking changes
- Behavior changed
A resolver is now called again when parent route parameters change, so resolvers may run more often than before. github.com - Behavior changed
navigate
Calling navigate with a null or undefined path now throws instead of failing silently. Code that passes such values must check them first. github.com
Related packages
- @angular/core
- @angular/compiler
- @angular/common
- @angular/platform-server
- @angular/forms
- @angular/platform-browser
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.