@angular/core

resource

function

Constructs a Resource that projects a reactive request to an asynchronous operation defined by a loader function, which exposes the result of the loading operation via signals.

  
    resource(  options: ResourceOptions<T, R>): ResourceRef<T>;
  
  
Jump to details