Angularjs $ na nazwie dwukrotnie
$rootScope.$broadcast(...)
$scope.$on(...)
var deregister = $scope.$on(...);
deregister(); // destory that listener
SAMER SAEID
$rootScope.$broadcast(...)
$scope.$on(...)
var deregister = $scope.$on(...);
deregister(); // destory that listener