Using $rootScope.$emit() As A Performance Optimization In AngularJS