angular-debounce icon indicating copy to clipboard operation
angular-debounce copied to clipboard

TypeError: debounce is not a function

Open dman777 opened this issue 7 years ago • 1 comments

I installed with bower. I am able to successfully inject debounce into the environment...it has no complaints. But the function debounce itself is undefined.

      var fn = debounce(500, function(goal) {
        goal.collapsed = !goal.collapsed;
      });
angular.js:14110 TypeError: debounce is not a function
    at new <anonymous> (http://72.182.44.3:9000/app/goals-user/main.ctrl.js:12:16)
    at Object.instantiate (http://72.182.44.3:9000/bower_components/angular/angular.js:4777:14)
    at $controller (http://72.182.44.3:9000/bower_components/angular/angular.js:10533:28)
    at Object.link (http://72.182.44.3:9000/bower_components/angular-route/angular-route.js:1056:26)
    at http://72.182.44.3:9000/bower_components/angular/angular.js:1259:18

dman777 avatar Dec 06 '16 18:12 dman777

Could you give a bit more context? How does main.ctrl.js look like?

rubenv avatar Dec 07 '16 07:12 rubenv