@microsoft/fast-element > ElementController > unsubscribe
ElementController.unsubscribe() method
Unsubscribes from notification of changes in the element'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 to unsubscribe from. |
Returns:
void