Broadcasting a Custom Event to the Child Scope Hierarchy

You can also broadcast an event downward through the child scope hierarchy by using the $broadcast() method. Any descendent scopes that have registered for the event are notified. The $broadcast() method uses the following syntax, where name is the event name and args is zero or more arguments to pass to the event handler functions:

scope.$broadcast(name, [args, . . .])

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

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