Dirk Räder
Member since Apr 26, 2016
- Profile: /members/13156-dirk-r-der.htm
- Comments: 1
Recent Blog Comments By Dirk Räder
-
Unbinding Scope.$on() Event Handlers In AngularJS
Posted on Apr 26, 2016 at 9:19 AM
Hi, I've taken this a bit further to create a "run once" event handler: var deregisterRunOnceHandler = $scope.$on('eventName', function() { [...] deregisterRunOnceHandler(); deregisterRunOnceHandler = null; }); Can be useful for others as well. Regards, Dirk... read more »