createGuestModule()
function createGuestModule(
guestId: string,
params?: HostProvidedParams,
overrides?: ModuleOverrides): IModule;
Create a module scripting object for a guest micro-app. The host registers this before rendering GuestMicroApp so the guest can pull its init parameters via module.getParameters().
Internally calls buildModuleParams to merge the app config
values (hostUrl, manifestPath, homeRoute) with host-provided values
(theme, history, initialRoute). When nested under a parent iframe,
resolveGuestOpenHistory is applied to params.history automatically
(same behavior as GuestMicroApp).
Register the returned object via CMicroApp.addScriptingObject (not directly on the app bridge) so it is added to both the App Bridge and the SSF Host.
Parameters
guestId
string
App id as defined in app.config.json (e.g. 'loanapp')
params?
HostProvidedParams = {}
Host-provided values (theme, history, initialRoute, custom keys)
overrides?
ModuleOverrides = {}
Method overrides / additions (e.g. custom getCapabilities)
Returns
IModule
IModule scripting object ready for CMicroApp.addScriptingObject