ngx-mfe
Version:
A library for working with MFE in Angular in a plugin-based approach and with Angular routing.
25 lines (24 loc) • 643 B
TypeScript
import { Observable } from 'rxjs';
import { MfeConfig } from '../interfaces';
/**
* Registry of micro-frontends apps.
*/
export declare class MfeRegistry {
private static _instance;
private readonly _mfeConfig$;
/**
* Get instance of the MfeRegistry
*/
static get instance(): MfeRegistry;
private constructor();
/**
* Set config.
* @param config Micro-frontends config
*/
setMfeConfig(config: MfeConfig): void;
/**
* Get the remote entry URL the micro-frontend app
* @param mfeApp Micro-frontend app name
*/
getMfeRemoteEntry(mfeApp: string): Observable<string>;
}