import { Component } from '@angular/core'; import { Observable } from 'rxjs'; import { LoadingService } from '../../services/loading.service'; import { CommonModule } from '@angular/common'; @Component({ selector: 'app-loader', imports: [CommonModule], templateUrl: './loader.component.html', styleUrl: './loader.component.scss' }) export class LoaderComponent { loading$: Observable; constructor(private loadingService: LoadingService) { this.loading$ = this.loadingService.loading$; } }