pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://angular.dev/api/core/WritableResource

=== 'auto' && prefersDark)) { documentClassList.add(DARK_MODE_CLASS_NAME); } else { documentClassList.add(LIGHT_MODE_CLASS_NAME); } if (location.search.includes('uwu')) { documentClassList.add('uwu'); } WritableResource • Angular
    • Overview
@angular/core

WritableResource

interface

A Resource with a mutable value.

API

    
      interface WritableResource<T> extends Resource<T> {
}

hasValue

this is WritableResource<Exclude<T, undefined>>
@paramthisT extends undefined ? this : never
@returnsthis is WritableResource<Exclude<T, undefined>>

hasValue

boolean
@returnsboolean

set

void

Convenience wrapper for value.set.

@paramvalueT
@returnsvoid

update

void

Convenience wrapper for value.update.

@paramupdater(value: T) => T
@returnsvoid

reload

boolean

Instructs the resource to re-load any asynchronous dependency it may have.

Note that the resource will not enter its reloading state until the actual backend request is made.

@returnsboolean

true if a reload was initiated, false if a reload was unnecessary or unsupported

status

Signal<ResourceStatus>

The current status of the Resource, which describes what the resource is currently doing and what can be expected of its value.

error

Signal<Error | undefined>

When in the error state, this returns the last known error from the Resource.

isLoading

Signal<boolean>

Whether this resource is loading a new value (or reloading the existing one).

snapshot

Signal<ResourceSnapshot<T>>

The current state of this resource, represented as a ResourceSnapshot.

Description

A Resource with a mutable value.

Overwriting the value of a resource sets it to the 'local' state.

Jump to details
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy