Cant find ViewController in @ionic/angular . creating modal in ionic 4. but cant close that modal through cross button.
Solution :- You can just import the ModalController
and call the dismiss
method inside of the modal you are trying to dismiss.
Reference :- https://forum.ionicframework.com/t/cant-find-viewcontroller-ionic-v4/136657