Jan 19, 2025
loader param of resource() accept PromiseLike custom type and not observable. That's why TodoService is not used.
export declare type ResourceLoader<T, R> = (param: ResourceLoaderParams<R>) => PromiseLike<T>;
If observable is needed, we can use rxResource() api.