title: AngularJS and google cloud endpoint: walk through needed
body: <p>I'm new to AngularJS but I really like the way AngularJS works so I want to deployed it as client side for my Google cloud endpoint backend. Then I immediately get two problems:</p>
  
  <p>1, Where to put the <strong>myCallback</strong>, so it's able to work into the ANgularJs controller?</p>
  
  <pre><code>&lt;script src="https://apis.google.com/js/client.js?onload=myCallback"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>2, How I'm able to do the oauth2? and how the controller knows if the user authorized?</p>
  
  <pre><code>gapi.auth.authorize({client_id: myCLIENT_ID,
        scope: mySCOPES,.....
  </code></pre>
  
  <p>Any help is appreciated.</p>