21. Screen Layout
The Problem
ERP screens commonly have stable regions such as header, navigation, content, right panel, and footer.
The Angular Difficulty
Angular templates and components make layout straightforward, but the developer still defines the region structure and layout conventions.
Angular Approach
<div class="screen">
<app-header />
<app-menu />
<main><router-outlet /></main>
<app-footer />
</div>
MS Approach
ManySet provides a direct runtime-oriented approach for this recurring business-application task.
const layout = ms.layout();
layout.header = header;
layout.left = menu;
layout.main = content;
layout.footer = footer;
await ms.insert(layout, "screen");
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.