i have a controller the get data from my back-end application, when opening the state for the first time from the first controller it loads the data, but when it try to open it again it does not load the new data
here is how
if (selectedServiceID == "000")
{
$state.go('balanceInquery');
};
here is the called balanceInquery state controller
.controller('BalanceInqueryController', function($scope, getAccountBalanceService, $state, $ionicLoading, $ionicPopup) {
getAccountBalanceService.get(username, pass, customerID, serviceAccID, langID)
.success(function(data) {
$scope.custBalance = data;
})
.error(function(data) {
var alertPopup = $ionicPopup.alert({
title: 'Error!',
template: 'Sorry something went wrong'
});
});
})