dynamic-component-manifest.ts 645 B

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