var getAgentBalanceAmount = function (ClientId, UserId) {
$http({
method: 'GET',
url: $scope.ip + '/getAgentBalanceAmount?ClientId=' + ClientId + '&AgentId=' + UserId + ''
})
.then(function success(response) {
$scope.getBalAmount = response.data[0].BalanceAmount;
}, function error(response) {
alert('Error');
});
};
在这种方法中$ scope.getBalAmount有一定的价值,并装订成的index.html page.here索引页充当主page.i想改变其他这个值页面(在内容页面中)是否可能。提前感谢。如何一个控制器值更改为另一个控制
最好的办法是提取'http.get()'代码放到'厂\役'并在不同的控制器中随时随地使用它。 – anoop