AngularJS error: fnPtr is not a function

前端 未结 2 363
孤街浪徒
孤街浪徒 2020-12-16 12:26

I\'m trying to write a sample AngularJS, and SpringMVC project. The spring methods works fine, but I have a problem with declaraton of function in my site controller. My app

2条回答
  •  感动是毒
    2020-12-16 13:01

    Just wanted to add for anybody receiving this error, it can also be seen if you, like me, make the n00b mistake of creating a variable with the same name as function (the function being called from ng-click:

    $scope.addTask = {};
    
    $scope.addTask = function() {};
    

提交回复
热议问题