Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Angularjs $on called twice

$rootScope.$broadcast(...)

$scope.$on(...)

var deregister = $scope.$on(...);

deregister(); // destory that listener
 
PREVIOUS NEXT
Tagged: #Angularjs #called
ADD COMMENT
Topic
Name
6+3 =