Know the current page (below page) from modal


#1

I need the modal know which page it is below, to decide which content to show in the modal. But I couldn’t achieve that result. using this.navCtrl.getActive().name will give me “modalcCmp”, I need to check the page below the modal is “homepage”. I can check that on a page but on the modal. I couldnt. Do you guys have an idea to achieve this?


#2

I think solution is getActive().name as parent, and pass the name when calling the modal. :slight_smile: okay, I answered to my own question. hope it helps :slight_smile: happy coding