(value: Signal<T>, debugName: string | undefined)
| 122 | readonly isLoading: Signal<boolean>; |
| 123 | |
| 124 | constructor(value: Signal<T>, debugName: string | undefined) { |
| 125 | this.value = value as WritableSignal<T>; |
| 126 | this.value.set = this.set.bind(this); |
| 127 | this.value.update = this.update.bind(this); |
| 128 | this.value.asReadonly = signalAsReadonlyFn; |
| 129 | |
| 130 | this.isLoading = computed( |
| 131 | () => this.status() === 'loading' || this.status() === 'reloading', |
| 132 | ngDevMode ? createDebugNameObject(debugName, 'isLoading') : undefined, |
| 133 | ); |
| 134 | } |
| 135 | |
| 136 | abstract set(value: T): void; |
| 137 |
nothing calls this directly
no test coverage detected
searching dependent graphs…