@microsoft/fast-element > ElementController > subscribe
ElementController.subscribe() method
Subscribes to notification of changes in the element's state.
Signature:
subscribe(subscriber: Subscriber, propertyToWatch?: any): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
subscriber |
The object that is subscribing for change notification. | |
|
propertyToWatch |
any |
(Optional) The name of the property to watch for changes. |
Returns:
void