ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Feature Request: clearCache() & clearHistory()

Open lbickston opened this issue 10 years ago • 4 comments

Short description of the problem:

After a user logs out, there is no Ionic2 equivalent of $ionicHistory.clearCache() and $ionicHistory.clearHistory().

Which Ionic Version? 2.x

lbickston avatar Mar 15 '16 14:03 lbickston

On logout, why not just use setRoot in order to clear everything out of cache and the back stack?

dylanvdmerwe avatar Mar 16 '16 09:03 dylanvdmerwe

@dylanvdmerwe setRoot worked perfectly. Thank you.

lbickston avatar Mar 16 '16 15:03 lbickston

setRoot ios will load rootPage four times? why

coolara avatar Mar 23 '17 02:03 coolara

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 03 '18 15:09 ionitron-bot[bot]