interface ViewResource<TClient extends ViewClient> extends Resource<TClient["snapshot"] | undefined> A View connection as an Angular Resource: value() is the View's state, status() is loading until the client connected (reloading after reload()), then resolved, or error with error() the connection failure; idle while the source is null or undefined.
Properties
client
readonly client: Signal<TClient | undefined>; The connected client for commands, or undefined until it connects.
Methods
reload
reload(): boolean; Connects again, for example after a failure. Returns false while the source is null or undefined.
destroy
destroy(): void; Releases the client and returns the resource to idle; the injector's destruction does this too.