angular - Ionic 3 deep-linking and lazy-loading at the same time -


according i've read in documentation , forums, enable deep-linking via : forroot(approot, config, deeplinkconfig)

@ngmodule({   ..   ionicmodule.forroot(myapp, {}, {     links:[{ component: contactpage, name: "contact", segment: "contact"},            { component: hellopage, name: "hello", segment: "hello" }           ]   })   ... }) ... 

this leads adding contactpage , hellopage declarations , entrycomponents arrays within @ngmodule, not lazy-loaded.

so, leads question, can substitute strings, doing away imports , double array declaration, , have this?

@ngmodule({   ..   ionicmodule.forroot(myapp, {}, {     links:[{ component: 'contactpage', name: "contact", segment: "contact"},            { component: 'hellopage', name: "hello", segment: "hello" }           ]   })   ... }) ... 

and achieve lazy-loading @ same time?

update: tried single tabs page. i'm guessing it's not working atm.

lazy-loaded deep-linked tabbed page fail


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -