import { Component } from '@angular/core'; import { EpdfAnnotationLayer, EpdfAnnotationTemplate, type Annotation, } from '@embedpdf/angular/annotation'; @Component({ selector: 'app-annotations', imports: [EpdfAnnotationLayer, EpdfAnnotationTemplate], template: `
{{ annotation.author?.[0] ?? '?' }}
`, }) export class Annotations { protected readonly isNote = (annotation: Annotation) => annotation.subtype === 'text'; }