30. Common JavaScript and Library Management

The Problem

Business applications often share utility scripts and third-party libraries across many components.

The Angular Difficulty

Angular's module system and build tooling manage imports, but shared scripts and third-party runtime resources still need dependency and configuration decisions.

Angular Approach

import { formatCurrency } from "./common/format-currency";

export class SalesComponent {
    text = formatCurrency(1250);
}

MS Approach

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

// GlobalConfig.json can declare CommonJS and CommonCSS.
// Example: a shared .mjs, classic .js, or external library can be
// made available according to the application's configuration.

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.