Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace App

Index

Functions

  • loadApp<CTX>(appName: string, appTarget: string, appContext: CTX): void
  • Load/initialize applications that are registered via registerApp.

    Type Parameters

    • CTX = any

    Parameters

    • appName: string
    • appTarget: string
    • appContext: CTX

    Returns void

  • registerApp<CTX>(appName: string, onInit: OnInitCallback<CTX>, hot?: boolean): void
  • Registers an app by "appName". When the app is requested to be loaded (via loadApp) the onInit() callback will be invoked to initialize the app.

    Type Parameters

    • CTX

    Parameters

    • appName: string

      The unique name for this app type.

    • onInit: OnInitCallback<CTX>

      Callback that will be invoked when the app is loaded.

    • Optional hot: boolean

      If this app is running in a "hot" module reload context you'll want to set this to "true" so the app can be properly initialized after module reloads.

    Returns void

Generated using TypeDoc