AngularJS provides publish subscribe mechanism using using
$emit and
$broadcast mechanism.A published message can be subscribed or listened using
$on method.In this
demo, "
We will learn the difference between Emit and broadcast pub-sub mechanism using a real simple example".
Difference between Emit and Broadcast is the
way they propagate or traveled from the source.A message publish via $emit propagates
upward and travel up t...
Published on September 27, 2014 01:08