question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: remove a particular view from the history

See original GitHub issue

Type: <span ionic-type>feat</span>

Platform: <span ionic-platform>mobile</span> <span ionic-webview>webview</span>

<span ionic-description>Say i have traversed 3 views and i have a history that looks like this: A -> B -> C and i am now on C:

Is there currently a way that i can remove B completely from the history - including the cached elements and scope? This would mean going back goes to A

The goBack([amount]) method works perfectly in some situations, but it doesn’t work with iOS swipe to go back. A better solution would be a method to remove a specific item in the current history. </span>

<span is-issue-template></span>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:41 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
danbucholtzcommented, Apr 15, 2016

This will be a part of tonight’s nightly build. No further +1s needed 👍 . Thanks for contribution everyone!

Thanks, Dan

2reactions
lucasbeefcommented, Jan 2, 2016

If you want to prevent the user to nav back to the last state you can always use $ionicHistory.goBack() before navigating to an other state.

Something like : $ionicHistory.goBack(); $state.go(‘app.home’);

It is not as flexible as being able to remove a particular page though, but in my case it was enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Delete Browsing History in Google Chrome - YouTube
Click to place a check mark next to any items you want to delete and get rid of over your specified time frame....
Read more >
Manage & delete your Search history - Android - Google Support
A specific activity: Next to the activity, tap Delete activity item . Control your Search history. Tip: To add more security, you can...
Read more >
How to Use Safari's Private Browsing Mode and Delete Your ...
1. Open Safari on your iPhone or iPad, tap the Pages icon (consisting of two squares) to bring up the open tabs view,...
Read more >
Delete cookies in Microsoft Edge
Learn how to delete cookies in Microsoft Edge. Clear all cookies, cookies from a specific site, or every time you close the browser....
Read more >
git rebase | Atlassian Git Tutorial
This lets you clean up history by removing, splitting, and altering an existing series of commits. It's like Git commit --amend on steroids....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found