Notifier.unsubscribe() method
@microsoft/fast-element > Notifier > unsubscribe
Notifier.unsubscribe() method
Unsubscribes from notification of changes in an object's state.
Signature:
unsubscribe(subscriber: Subscriber, propertyToUnwatch?: any): void;
Parameters
Parameter | Type | Description |
---|---|---|
subscriber | The object that is unsubscribing from change notification. | |
propertyToUnwatch | any | (Optional) The name of the property that the subscriber is no longer interested in watching. |
Returns:
void
Remarks
Some implementation may or may not require the propertyToUnwatch.