12. CallTree Dependency Preloading

The Problem

A component can indirectly load several descendants. Repeated runtime discovery can cause avoidable network revisits.

The Angular Difficulty

Angular's compiler understands imports, while dynamically created component relationships can remain application-specific and runtime-driven.

Angular Approach

// Angular module/component imports are analyzed by the Angular build.
// Application-specific dynamic descendants can still be created at runtime.
const ref = this.host.createComponent(SalesComponent);

MS Approach

ManySet provides a direct runtime-oriented approach for this recurring business-application task.

// Developer does not call CallTree.
// At build time MS detects onLoad inject dependencies.
// Runtime can preload A1, A2, A11, A111 before executing A.
await ms.inject("./folder1/sales", "Div1");

Why this way is useful in business applications :

The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.

Key Point :

ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.