Skip to main content

@microsoft/fast-element > PropertyChangeNotifier > subscribe

PropertyChangeNotifier.subscribe() method

Subscribes to notification of changes in an object's state.

Signature:
subscribe(subscriber: Subscriber, propertyToWatch?: string): void;

Parameters

ParameterTypeDescription
subscriberSubscriberThe object that is subscribing for change notification.
propertyToWatchstringThe name of the property that the subscriber is interested in watching for changes.
Returns:

void