Ionic 4 Angular - How to self dismiss a modal. In Ionic 3, dismissing a modal was pretty simple: In Ionic 4, I can't import ViewController (or to be accurate, my IDE tries to import a type of ViewController).
Nov 04, 2018 · in your app.module.ts. You can still use <router-outlet></router-outlet> with the Ionic 4 components, but the Ionic team added a special feature to it: A “stack” functionality like in Ionic 3. A Modal is a content pane that goes over the user's current page. Usually it is used for making a choice or editing an item. A modal uses the NavController to present itself in the root nav stack. It is added to the stack similar to how NavController.push works.