Back to home page

EIC code displayed by LXR

 
 

    


Warning, /firebird/firebird-ng/src/app/model/default-components-init.ts is written in an unsupported language. File is not indexed.

0001 import {registerComponentFactory} from "./entry-component";
0002 import {TrackerLinePointTrajectoryComponentFactory} from "./point-trajectory.event-component";
0003 
0004 /**
0005  * Initializes and registers the default event blocks-components.
0006  *
0007  * In Angular, files that contain only side-effectful calls like
0008  * `registerComponentFactory(...)` can be tree-shaken out if they are never imported directly.
0009  * By putting the registration inside this function, and explicitly calling it
0010  * in a known place (e.g., `app.module.ts` or another main entry point), we ensure
0011  * that the factory is actually registered at runtime.
0012  *
0013  * This approach lets us control when the registration happens, rather than
0014  * relying on top-level imports that might be removed by the bundler
0015  * if not referenced elsewhere. Any other factories that need to be registered
0016  * can be placed in here or in a similar init function.
0017  */
0018 export function initComponentFactories() {
0019   registerComponentFactory(new TrackerLinePointTrajectoryComponentFactory());
0020 }