In Angular, scopes organized in a hierarchy can be used as an event bus. What this means is that you can propagate custom events through the hierarchy of scopes. To propogate an event upwards through the hierarchy of scopes you would use the $emit method of the $scope object. To propogate an event in the opposite direction you would use the $broadcast method. An event handler for any of these custom can be registered via the invocation of the scope's $on method.
Your new post is loading...