I tried to follow this approach
While it does reload, it does not however allow me to stay on my current page. It keeps on going back to the first state of my app.
I am currently using ui-router
. Is there another way of reloading the page without going back to the first state? I am currently experiencing an odd flicker when I do this:
$scope.submit = function() {
$state.go($state.current, {}, {
reload: true
});
doDeposit();
}
and then pass parameters on it (within doDeposit()
):
var oResponse = data;
$state.transitionTo('deposit.status', {
opts: {
'response': oResponse,
'amount': data.amount
}
});
Current behavior: Page reloads; goes back to the home page for a second, then switches back to the intended page. I just need the data to refresh within its page. I have a 'submit again' button that redo the initial behavior of the first 'submit'. It re-processes the data available without going back to its initial state.