Pass data from JSONP callback function to Angular controller
<p>I have JSONP request that callbacks function outside Angular Controller. How can I return data from that function back to Controller? Or maybe there's a way to callback function inside Controller? </p>

<p>Adding '<strong>?callback=JSON_CALLBACK</strong>' don't fire <strong>success</strong> promise. I think it's because JSONP response wraped in function call:
<em>CBR_XML_Daily_Ru({"Date":"2016-10-06T00:00:00+00:00" ... });</em></p>

<pre><code>&lt;div ng-controller='myCtrl' ng-app='myApp'&gt;
    &lt;input type=text ng-model='divForCharCode'&gt;&lt;/input&gt;
    &lt;div id='div1'&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;script&gt;CBR_XML_Daily_Ru = function(data) {
  document.getElementById("div1").innerHTML = data.Valute.EUR.CharCode;

};

var myApp = angular.module('myApp', [])
  .controller('myCtrl', myCtrl);

  function myCtrl($scope,$http) {
      $scope.divForCharCode = ' need to place EUR here!';
    $http.jsonp('https://www.cbr-xml-daily.ru/daily_jsonp.js');
  };&lt;/script&gt;
</code></pre>

<p><a href="https://plnkr.co/edit/hKdXf7MxAhnU8aMFqPUV" rel="nofollow">https://plnkr.co/edit/hKdXf7MxAhnU8aMFqPUV</a></p>