Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Dirk Räder

Member since Apr 26, 2016

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 »