| 1234567891011121314151617181920 |
- import { InjectionToken } from '@angular/core';
- export const DYNAMIC_COMPONENT = new InjectionToken<any>('DYNAMIC_COMPONENT');
- export const DYNAMIC_MODULE = new InjectionToken<any>('DYNAMIC_MODULE');
- export const DYNAMIC_COMPONENT_MANIFESTS = new InjectionToken<any>(
- 'DYNAMIC_COMPONENT_MANIFESTS'
- );
- export interface DynamicComponentManifest {
- /** Unique identifier, used in the application to retrieve a ComponentFactory. */
- componentId: string;
- /** Unique identifier, used internally by Angular. */
- path: string;
- /** Path to component module. */
- loadChildren: string | any; // Support for angular 8 style module imports
- }
|