How to use custom component inside modal controller


Hi, How to use a custom component inside the modal controller.

let modal = this.modaCtrl.create(‘customComponent’);

this shows an invalid link error


Ionic v4 - Modal Controller

Ionic v3 - Modal Controller

if you are lazy loading, the modal module must be included in the app module and in the page module you are calling it from