SyntaxFix
Write A Post
Hire A Developer
Questions
Resolved promise:
return $q.when( someValue ); // angularjs 1.2+ return $q.resolve( someValue ); // angularjs 1.4+, alias to `when` to match ES6
Rejected promise:
return $q.reject( someValue );