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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -