When came back from previous screens when click on backboutton kill previous screens


Hi Friends, In My App I have two type of login users like customer and admin. In my testing when I login as first time as customer it opens dashboard page successfully. But When I click logout button and login as admin the same customer dashboard screen appear admin dashboard not appeared. when Login as admin as first time admin panel opened successfully but when i logout and login as customer screen appears. As per my Idea in Core android development I solve this issue by using intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);

But in Ionic How can I solve. Please help me.