Emitting and Broadcasting Custom Events

A great feature of scopes is the capability to emit and broadcast events within the scope hierarchy. Events enable you to send notification to different levels in the scope that an event has occurred. Events can be anything you choose, such as a value changed or threshold reached. This is extremely useful in many situations, such as letting child scopes know that a value has changed in a parent scope or vice versa.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset