I've tried to inject $q in my controller like this:
app.controller('NodeCtrl', ['Tree', function(Tree, $scope, $element, $q) {
But, $q
is not defined, how can I start using it? I am using Angular 1.4
I've tried to inject $q in my controller like this:
app.controller('NodeCtrl', ['Tree', function(Tree, $scope, $element, $q) {
But, $q
is not defined, how can I start using it? I am using Angular 1.4
Copyright © 2021 Jogjafile Inc.
You need to inject it as well as add it to your argument list: