angularjs - How to remove last page with using $window.history.back() -
in code, logics executed belows.
- showing items list in main page.
- click 1 item , move detail page.
- i wanna change something, click edit button , move edit page.
- edit , finish editing click confirm button.
- when click button, execute
$state.go('root.detail', {cat_id : $scope.cat_id}, {location: 'replace'});
. - then move detail page.
through these, location history has successive detail page.
i know cannot handle history.
and think using $window.histroy.back();
more appropriate instead of using
$state.go('root.detail', {cat_id : $scope.cat_id}, {location: 'replace'});
to remove history.
anyone have idea solve this?
.
.
.
i add paint files make easy understanding want. :)
Comments
Post a Comment