import { InjectionToken } from '@angular/core'; export const DYNAMIC_COMPONENT = new InjectionToken('DYNAMIC_COMPONENT'); export const DYNAMIC_MODULE = new InjectionToken('DYNAMIC_MODULE'); export const DYNAMIC_COMPONENT_MANIFESTS = new InjectionToken( '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 }