Share via


dynamicObservableMixin.updateProperty method

Updates a property value and notifies any listeners.

Syntax

dynamicObservableMixin.updateProperty(name, value).done( /* Your success and error handlers */ );

Parameters

  • name
    Type: String

    The name of the property to update.

  • value
    Type: Object

    The new value of the property.

Return value

Type: Promise

A promise that completes when the notifications for this property change have been processed. If multiple notifications are coalesced, the promise may be canceled or the value of the promise may be updated. The fulfilled value of the promise is the new value of the property for which the notifications have been completed.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding

See also

dynamicObservableMixin