import { Component } from '@angular/core'; import { injectPictureState } from '@embedpdf/angular/render'; // Put in each page, after @Component({ selector: 'app-page-loading', template: ` @if (picture().status === 'loading' && picture().slow) {
} @else if (picture().status === 'error') {

This page couldn’t load.

} `, }) export class PageLoading { protected readonly picture = injectPictureState(); }