noydb/oworms-ui

View on GitHub
src/app/component/common/spinner/spinner.component.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Component } from '@angular/core';
import { Observable } from 'rxjs';

import { WordService } from '../../../service/word.service';

@Component({
    selector: 'ow-spinner',
    templateUrl: 'spinner.component.html',
    styleUrls: ['./spinner.component.scss']
})
export class SpinnerComponent {

    readonly busy$: Observable<boolean>;

    constructor(private readonly wordService: WordService) {
        this.busy$ = this.wordService.isBusy();
    }
}