gapi.client.load('myapi1', 'v1', function() {
gapi.client.load('myapi2', 'v1', function() {
gapi.client.load('myapi3', 'v1', function() {
$rootscope.$broadcast("All loaded")
}, '/_ah/api');
}, '/_ah/api');
}, '/_ah/api');
Currently, the APIs are being loaded sequentially. I would like them to be loaded asynchronously and once all APIs are loaded, broadcast a message. Is this achievable? If so, how?
An example demonstrating this would be greatly appreciated.