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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -