I\'m trying to get my head around promises in JavaScript (in particular AngularJS).
I have a function in a service, let\'s call it fooService, that chec
fooService
As your promise use the same syntax as the JavaScript native one, you could use and return an already resolved JavaScript promise : Promise.resolve()
return(Promise.resolve("MyReturnValue"));