angular/packages/router/test/integration
Andrew Scott 17d10f7a99 fix(router): set default paramsInheritanceStrategy to 'always'
Set the default value of paramsInheritanceStrategy to 'always'. This change ensures that route parameters are inherited from parent routes by default, which is the behavior most users expect. It simplifies routing configuration for the majority of use cases.

This change aligns Angular with other popular routing systems where child routes automatically have access to parent parameters:
- React Router: useParams() includes parent params.
- Vue Router: $route.params includes parent params.
- Next.js: params are passed to nested layouts and pages.
- TanStack Router: useParams() includes parent params with full type safety.

BREAKING CHANGE: paramsInheritanceStrategy now defaults to 'always'

The default value of paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that route parameters are inherited from all parent routes by default. To restore the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration.
2026-04-17 14:27:43 -07:00
..
duplicate_in_flight_navigations.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
eager_url_update_strategy.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
guards.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
integration.spec.ts fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
integration_helpers.ts feat(router): adds browserUrl input support to router links 2026-02-24 10:51:33 -08:00
lazy_loading.spec.ts ci: reformat files 2025-12-16 14:44:19 -08:00
navigation.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
navigation_errors.spec.ts test(router): move timeout and autoTick helpers to shared testing utilities 2026-02-10 07:45:00 -08:00
redirects.spec.ts refactor(router): Build out integration with browser Navigation API (#64905) 2025-11-06 17:42:04 +00:00
route_data.spec.ts fix(router): set default paramsInheritanceStrategy to 'always' 2026-04-17 14:27:43 -07:00
route_reuse_strategy.spec.ts ci: reformat files 2025-12-16 14:44:19 -08:00
router_events.spec.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00
router_link_active.spec.ts ci: reformat files 2025-12-16 14:44:19 -08:00
router_links.spec.ts feat(router): adds browserUrl input support to router links 2026-02-24 10:51:33 -08:00