import { Component, input } from '@angular/core'; import { NgTemplateOutlet } from '@angular/common'; /** Atom: heading. Renders the right h1..h5; CIBG/Bootstrap styles native headings. Single captured in a template — multiple ng-content across @switch branches silently drops the projected content. */ @Component({ selector: 'app-heading', imports: [NgTemplateOutlet], template: ` @switch (level()) { @case (1) {

} @case (2) {

} @case (3) {

} @case (4) {

} @default {
} } `, }) export class HeadingComponent { level = input<1 | 2 | 3 | 4 | 5>(2); }