Guy Mograbi
Member since Oct 12, 2015
- Profile: /members/12869-guy-mograbi.htm
- Comments: 1
Recent Blog Comments By Guy Mograbi
-
Don't Forget To Cancel $timeout Timers In Your $destroy Events In AngularJS
Posted on Oct 12, 2015 at 1:14 AM
Great! but lets admit it, it's ugly and bug prone.. why did angular not come up with `$scope.$timeout()` function that simply does that? Here is how to add it ``` angular.module('MyApp',[])....run ( function( $rootScope, $timeout ) { var Scope = Object.getPrototypeOf($rootScope); S... read more »