I am trying to pass parameters from one view to another in my anulgar/ionic app.
in the volCompute
view ($stateParams is declared):
if ($stateParams.modelLine){
console.log('receiving', $stateParams.modelLine.id, $stateParams.modelLine.modelStrict)
$scope.data.chosenModel = $stateParams.modelLine.modelStrict;
}
in the compare
view:
$state.go('app.volCompute', { modelLine: test[0] }, {reload: true});
but it works only one time, if I go back and forth between the two views the code in volCompute
is not run.
It seems like the reload: true
is only executed once.
Can you help please ?