• Overview
@angular/core

ResourceSnapshot

Type Alias

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