Skip to main content

@microsoft/fast-element > Notifier

Notifier interface

Provides change notification for a source object.

Signature:
export interface Notifier 

Properties

PropertyTypeDescription
sourceanyThe source object that this notifier provides change notification for.

Methods

MethodDescription
notify(args)Notifies all subscribers, based on the args.
subscribe(subscriber, propertyToWatch)Subscribes to notification of changes in an object's state.
unsubscribe(subscriber, propertyToUnwatch)Unsubscribes from notification of changes in an object's state.