File

projects/wms-framework/src/lib/regionsframework/ExternalFragmentRegistry.ts

Description

Copyright (C) Mobilize.Net info@mobilize.net - All Rights Reserved

This file is part of the Mobilize Frameworks, which is proprietary and confidential.

NOTICE: All information contained herein is, and remains the property of Mobilize.Net Corporation. The intellectual and technical concepts contained herein are proprietary to Mobilize.Net Corporation and may be covered by U.S. Patents, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Mobilize.Net Corporation.

Index

Properties
Methods

Properties

Static registrations
Type : literal type
Default value : {}

Methods

Static clear
clear()
Returns : void
Static registerFragment
registerFragment(moduleName: string, moduleImportFunction: () => void)
Parameters :
Name Type Optional
moduleName string No
moduleImportFunction function No
Returns : void
export class ExternalFragmentRegistry {
  public static registrations: { [key: string]: () => Promise<unknown> } = {};

  public static clear(): void {
    ExternalFragmentRegistry.registrations = {};
  }
  public static registerFragment(
    moduleName: string,
    moduleImportFunction: () => Promise<unknown>
  ): void {
    ExternalFragmentRegistry.registrations[moduleName] = moduleImportFunction;
  }
}

result-matching ""

    No results matching ""