The functions hello.api
, hello.login
and hello.logout
return a Promises/A+ 1.1.1 compliant then method.
This example shows how to use Promises to act on the response from hello.login and hello.api calls.
Promise.all
is not native in IE yet so here's a shim
Initiate app