• Overview
@angular/core/rxjs-interop

rxResource

function

Like resource but uses an RxJS based loader which maps the request to an Observable of the resource's value. Like firstValueFrom, only the first emission of the Observable is considered.

  
    function rxResource<T, R>(  opts: RxResourceOptions<T, R>): ResourceRef<T>;
  
  

rxResource

Like resource but uses an RxJS based loader which maps the request to an Observable of the resource's value. Like firstValueFrom, only the first emission of the Observable is considered.

@paramoptsRxResourceOptions<T, R>
@returnsResourceRef<T>
Jump to details