You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
517 B
TypeScript
19 lines
517 B
TypeScript
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<boolean>;
|
|
|
|
constructor(private loadingService: LoadingService) {
|
|
this.loading$ = this.loadingService.loading$;
|
|
}
|
|
}
|