javascript - what is this angular error? -


just made simple controller injection.

var simpleproductlistcontroller = basecontroller.extend({      _notifications:null,     _productsmodel:null,      init:function($scope,productsmodel,$route){     },         definelisteners:function(){         this._super();                 },     destroy:function(){      } }) /...  simpleproductlistcontroller.$inject = ['$scope','productsmodel','$route']; 

the console error points this: http://errors.angularjs.org/1.2.16/ng/areq?p0=simpleproductlistcontroller&p1=not%20ananunction%2c%20got%20undefined

argument 'simpleproductlistcontroller' not ananunction, got undefined 

how supposed debug this? got batarang nothing here.

basically, angular saying simpleproductlistcontroller undefined.

when i've gotten error, because created controller , tried inject app did not load file defines controller adding script tag index.html file.


Comments