In my code, logics are executed like belows.
- Showing items list in main page.
- Click one item and move to detail page.
- I wanna change something, so click edit button and move to edit page.
- Edit some and finish editing with click the confirm button.
- When click the button, execute
$state.go('root.detail', {cat_id : $scope.cat_id}, {location: 'replace'});
. - Then move to detail page.
Through these, location history has successive detail page.
I know that we cannot handle history.
And I think using $window.histroy.back();
is more appropriate instead of using
$state.go('root.detail', {cat_id : $scope.cat_id}, {location: 'replace'});
to remove history.
Anyone have idea to solve this?
.
.
.
I add my Paint files to make easy understanding what I want. :)