title: Setting the JSONP callback function in AngularJS
body: <p>I'm trying to fetch data from a web API via Angular $resource service. The service exposes JSONP interface, but does not allow setting the callback name. Everything works well, my requests goes out, the data returns, the script is injected and then it fails because the callback function is not defined.</p>
  
  <p>Angular documentation is very sparse on this, but it seems that the default callback function Angular sets up is: <code>JSON_CALLBACK</code>, and there's no info how to change that so that it matches the function returned by the foreign API.</p>
  
  <p>Thanks.</p>