Question and answer is powered by AnsPress.io
I have a screen where I want to add back button and while click on the button then I want to back to previous screen.So how to do this?
If you want to dismiss a screen then follow the code.
First you need to import ViewController.
import { ViewController } from ‘ionic-angular’;
Then
@Component({...}) export class MyPage{ constructor(public viewCtrl: ViewController) { //Disimiss controller this.viewCtrl.dismiss(); } }