Yesterday, I looked at how to create a simple modal window system in AngularJS. In that exploration, I used the $rootScope to bridge the gap between the modal Service and the modal directive. In the past, I've used the same approach to bridge the gap between a global uploader service and its Plupload directive. As it turns out, the scope tree acts as a wonderful pub/sub (Publish and Subscribe) mec
![Using $rootScope.$emit() As A Performance Optimization In AngularJS](https://cdn-ak-scissors.b.st-hatena.com/image/square/56a4068c900087326e0712c8d62b29469282a331/height=288;version=1;width=512/https%3A%2F%2Fbennadel-cdn.com%2Fresources%2Fuploads%2F2015%2Frootscope-emit-performance-optimization.png)