.controller("PostsCtrl",
function($scope, $http) {
$http
.jsonp('https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.nbrb.by/RSS/?p=RatesDaily&callback=JSON_CALLBACK')
.then(function(data, status, headers, config) {
var str, usd;
str = data.data.responseData.feed.entries[0].contentSnippet;
usd = str.match(/.+Доллар США (.+) Российский рубль.*/)[1].replace(/[\s,]/g, '') / 100;
$scope.ByBankUSD = usd;
});
$scope.newscope = ???;
}
);
подскажите как мне $scope.ByBankUSD передать в $scope.newscope
ByBankUsd
сразу нужной переменной в$scope
?