Open
Description
Which @angular/* package(s) are relevant/related to the feature request?
router
Description
Resources are an excellent primitive for data fetching. Nevertheless, current implementation is designed to work well only in components. As expressed by @alxhub, ideally data fetching would be done at the route level, I understand that in resolvers. As of today, that can’t be done and, as far as I know, there is no simple solution to convert a resource into an observable.
Proposed solution
Let route resolvers support the resource API.
Alternatives considered
Use an effect to create an observable, but that would result in a memory leak.