@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 |
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