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
Post a Comment