[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/ResourceSnapshot [Back]  [Original]

ResourceSnapshot Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

ResourceSnapshot

Type Alias
stablesince v22.0

An explicit representation of a resource's state.

Resource composition with snapshots

On this page

    arrow_upward_alt Back to the top

    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

    Web Proxy Viewer  |  New URL  |  Original Page