I have two pages: page1.html has a button that opens page2.html with pushPage('page2.html')
. Then I would like to have a selectable parameter (I'm using radio buttons) to be returned to page1.html, so I use $scope.appNavigator.popPage({myParam: myValue})
, but at the controller of page1.html there're no params.
I expected to find myParam
with:
var page = $scope.accidentInvestigationNavigator.getCurrentPage();
$scope.myParam = page.options.myParam;
Is it possible to send parameters to the previous page with popPage()
?... if not, how could I return with a parameter?