11. Bulk Injection

The Problem

A dashboard may need to place several independent components into several containers at the same time.

The Angular Difficulty

Angular can create several dynamic components, but each target and component type normally needs explicit view-container handling.

Angular Approach

// Angular can render several dynamic components through a ViewContainerRef.
for (const type of [DailySaleComponent, StockComponent]) {
    this.host.createComponent(type);
}

MS Approach

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

const [sale, stock] = await ms.inject(
    ["./abc/DailySale", "demo1", { append: true }],
    ["./xyz/Stock", "demo2"]
);

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.