import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; import { GlobalLoadingService } from '../../../core/services/global-loading/global-loading.service'; @Component({ selector: 'app-global-loading', templateUrl: './global-loading.component.html', styleUrl: './global-loading.component.scss', changeDetection: ChangeDetectionStrategy.OnPush }) export class GlobalLoadingComponent { private readonly loadingService = inject(GlobalLoadingService); protected readonly isLoading = this.loadingService.isLoading; }