yes, I mean using modal controller without lazy loading.
I tried your suggestion.
import { ModalTrade } from '../../components';
let ruleModal = this.modalCtrl.create(ModalTrade, { rule: rule });
but errors shows up.
ion-dev.js?v=3.1.8:156 ERROR Error: Uncaught (in promise): Error: No component factory found for ModalTrade. Did you add it to @NgModule.entryComponents?
Error: No component factory found for ModalTrade. Did you add it to @NgModule.entryComponents?
at noComponentFactoryError (core.js:3789)
at CodegenComponentFactoryResolver.resolveComponentFactory (core.js:3853)
at ModalCmp.ionViewPreLoad (modal-component.js:42)
at ModalImpl.ViewController._lifecycle (view-controller.js:486)
at ModalImpl.ViewController._preLoad (view-controller.js:348)
at OverlayPortal.NavControllerBase._preLoad (nav-controller-base.js:753)
at OverlayPortal.NavControllerBase._viewInit (nav-controller-base.js:443)
at nav-controller-base.js:254
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.js:4629)
at noComponentFactoryError (core.js:3789)
at CodegenComponentFactoryResolver.resolveComponentFactory (core.js:3853)
at ModalCmp.ionViewPreLoad (modal-component.js:42)
at ModalImpl.ViewController._lifecycle (view-controller.js:486)
at ModalImpl.ViewController._preLoad (view-controller.js:348)
at OverlayPortal.NavControllerBase._preLoad (nav-controller-base.js:753)
at OverlayPortal.NavControllerBase._viewInit (nav-controller-base.js:443)
at nav-controller-base.js:254
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.js:4629)
at c (polyfills.js:3)
at Object.reject (polyfills.js:3)
at OverlayPortal.NavControllerBase._fireError (nav-controller-base.js:223)
at OverlayPortal.NavControllerBase._failed (nav-controller-base.js:216)
at nav-controller-base.js:263
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.js:4629)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3rd_place_medal: