angularjs - How to start using $q? -


i've tried inject $q in controller this:

app.controller('nodectrl', ['tree', function(tree, $scope, $element, $q) { 

but, $q not defined, how can start using it? using angular 1.4

you need inject add argument list:

app.controller('nodectrl', ['tree', '$scope', '$element', '$q',                 function(tree, $scope, $element, $q) { 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -