I created the Ionic application from the menu
ionic start myApp sidemenu
On one of the pages there will be a test, and I want that after the end of the test there is a mandatory page with a comment. With which the user could not get anywhere, until he filled out the comment.
I created a test page and a comment page
I decided to use the Modals
On the test page there is a button that opens a page of comments
finishTest() {
let modal = this.modalCtrl.create('CommentPage');
modal.present();
}
On the comments page, I want to go to the main page after sending
constructor(public navCtrl: NavController, public viewCtrl: ViewController) {}
onSubmit(form: NgForm) {
this.navCtrl.setRoot(HomePage);
}
The problem is that when I turn to the main page my sidemenu stops working.
Has anyone been confronted with this problem? How can it be solved? Can you use something else instead of Modals?