Hard
When we call the resolve() function on an object created with $q.defer(), in what cases is the associated promise rejected in error?
Author: Mathieu RobinStatus: PublishedQuestion passed 103 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
1
A way to modify the native behavior of a service1
How to access the parent scope in AngularJS1
Add an entry to the browser history1
What is the output of the following code?
```
var g = $q.defer();
var f = $q.defer();
setTimeout(function(){
g.resolve(1);
}, 1000);
setTimeout(function(){
f.resolve(2);
}, 2000);
console.log(g.then(function(x){
return f.then(function(y){
return x + y;
});
}));
```1
The server that serves my static files can be different from the one that serves the API1
How to get all the values of an array in AngularJS0
What are the 5 main building blocks of AngularJS?