To load the Javascript JavaScript library using AngularJs, the callback function passed to onLoad from the Javascript Library is a function that loads AngularJS, for example:
This refers to the ending of the html file:
<script src="https://apis.google.com/js/client.js?onload=startApp">
Then, in the <head> section, you load angular as follows:
<script type='text/javascript'> function startApp() { var ROOT = 'http://<yourapi>.appspot.com/_ah/api'; gapi.client.load('myapifromgoogleendpoint', 'version1', function() { angular.bootstrap(document, ["myModule"]); }, ROOT); } </script>
As described by Kenji, you also need to remove the ng-app directive from your html.
source share