Category: Angular.js

Quick Recap of $scope $scope.$emit fires an event up to the parent $scopes. $scope.$broadcast fires an event down the $scope. Using $scope.$on we can listen for these events. $rootScope – The Problem Statement $rootScope has no $parent, hence using an $emit for most obvious reasons seems pointless. However, a $rootScope.$emit(ted) event can only be caught by $rootScope.$on listeners and not by $scope.on listeners. On… Read more