Hi Anurag,

I rewrote it a bit.

   - no more $scope 
   - also no watches 
   - no scope apply needed for updating your scope data from an event 
   outside angular!! 
   - replaced the service with an directive 
   - all directives operate under private scope. 

have a look at the new plunk 
<http://plnkr.co/edit/2UOHexn1kPkKO0ikm8Ni?p=preview>

Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to