Skip to content

feat(router): expose router resources in public API - #70437

Draft
atscott wants to merge 2 commits into
angular:mainfrom
atscott:resourcepublicapi
Draft

feat(router): expose router resources in public API#70437
atscott wants to merge 2 commits into
angular:mainfrom
atscott:resourcepublicapi

Conversation

@atscott

@atscott atscott commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Router resources integrate the Angular router with the Signals Resource API, allowing route-level data fetching during navigation transitions.

This commit exposes the public API for router resources:

  • withRouterResources(): router feature to enable route resource support
  • Route.resources: route configuration function to define reactive resources with access to route params, queries, and injection context
  • nonBlocking(): helper to create non-blocking route resources that resolve without blocking route activation
  • ResourceContext and ResourceResult: supporting types for router resources
  • Component input binding support for route resources with priority over route data and parameters
  • Documentation and navigation entries for router resources on angular.dev

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: router labels Aug 27, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 27, 2026
Comment thread packages/router/src/provide_router.ts Outdated
Router resources integrate the Angular router with the Signals Resource API, allowing route-level data fetching during navigation transitions.

This commit exposes the public API for router resources:
- `withRouterResources()`: router feature to enable route resource support
- `Route.resources`: route configuration function to define reactive resources with access to route params, queries, and injection context
- `nonBlocking()`: helper to create non-blocking route resources that resolve without blocking route activation
- `ResourceContext` and `ResourceResult`: supporting types for router resources
- Component input binding support for route resources with priority over route data and parameters
- Documentation and navigation entries for router resources on angular.dev
@atscott
atscott force-pushed the resourcepublicapi branch from df62ffe to 41637ec Compare August 27, 2026 20:45

@JeanMeche JeanMeche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your favorite agent has some comments 😄

Comment thread adev/src/content/guide/routing/data-fetching-with-resources.md Outdated
Comment thread adev/src/content/guide/routing/data-fetching-with-resources.md Outdated
Comment thread adev/src/content/guide/routing/data-fetching-with-resources.md Outdated
@atscott atscott added the target: minor This PR is targeted for the next minor release label Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: router detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants