import { Component, inject } from '@angular/core'; import { EpdfAnnotation } from '@embedpdf/angular/annotation'; @Component({ selector: 'app-highlight-count', template: `

{{ highlights().length }} highlights

`, }) export class HighlightCount { protected readonly highlights = inject(EpdfAnnotation).watch({ subtype: 'highlight' }); }