MCPcopy Index your code
hub / github.com/angular/angular / state

Method state

packages/core/src/resource/from_snapshots.ts:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 constructor(readonly snapshot: Signal<ResourceSnapshot<T>>) {}
27
28 private get state(): ResourceSnapshot<T> {
29 return this.snapshot();
30 }
31
32 readonly value = computed(() => {
33 if (this.state.status === 'error') {

Callers 2

toggleMethod · 0.45
constructorMethod · 0.45

Calls 1

snapshotMethod · 0.80

Tested by

no test coverage detected