You are viewing documentation for a previous version of FAST. The latest version is 3.x. View latest docs →

@microsoft/fast-element > PropertyChangeNotifier > unsubscribe

PropertyChangeNotifier.unsubscribe() method

Unsubscribes from notification of changes in an object's state.

Signature:

unsubscribe(subscriber: Subscriber, propertyToUnwatch?: string): void;

Parameters

Parameter

Type

Description

subscriber

Subscriber

The object that is unsubscribing from change notification.

propertyToUnwatch

string

(Optional) The name of the property that the subscriber is no longer interested in watching.

Returns:

void