import { Component, EventEmitter, Input, Output } from '@angular/core'; import { CommonModule } from '@angular/common'; @Component({ selector: 'app-toc-overlay', standalone: true, imports: [CommonModule], template: `

Sommaire

` }) export class AppTocOverlayComponent { @Input() headings: Array<{ level: number; text: string; id: string }> = []; @Output() go = new EventEmitter(); @Output() close = new EventEmitter(); onGo(id: string) { this.go.emit(id); } }