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

Clear State / Reset App Environment

Open theCodeMachine opened this issue 12 years ago • 2 comments

In case of login based applications, on logout operation i need to clear ui view states through stateProvider or in other words we need to reset app environment e.g: Remove headers, Footers etc. plus remove the reference of last view state loaded in app. Is there any way to do that?

I have check out AngularUI Router documentation and also tried some of the experiments but it did not work for me.

Can you suggest something for this?

theCodeMachine avatar Mar 07 '14 12:03 theCodeMachine

If you would like to completely reload everything, try window.location.reload() (probably bring up a 'loading/splash screen' of some sort before calling location.reload())

ajoslin avatar Mar 15 '14 20:03 ajoslin

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 06 '18 06:09 ionitron-bot[bot]