Optimus framework, loading seperate apps as 'modules'


#1

Hello,

I am importing different Optimus Apps as “modules”.
Is it possible to not use the import function and load them only if required? (Seperate JS files?)

So now I import them in my main app file like this

import {mdl_dashboard_v1} from "views/mdl_dashboard_v1/mdl.js";

And I load them into a layout slot like this:

let module=window['mdl_dashboard_v1']
this.show(new module(), "ModuleSlot");

Is it possible to do something like:

*test if module exists
* load module app file 
let module=window['mdl_dashboard_v1']
this.show(new module(), "ModuleSlot");

Thanks