Visitar URL original
ResourceSnapshot • Angular
The Wayback Machine - https://web.archive.org/web/20260719003910/https://angular.dev/api/core/ResourceSnapshot
    • Overview
@angular/core

ResourceSnapshot

Type Alias
stablesince v22.0

An explicit representation of a resource's state.

API

    
      type ResourceSnapshot<T> = | {readonly status: 'idle'; readonly value: T}  | {readonly status: 'loading' | 'reloading'; readonly value: T}  | {readonly status: 'resolved' | 'local'; readonly value: T}  | {readonly status: 'error'; readonly error: Error}
    
    
Jump to details