RSS Git Download  Clone
Raw Blame History
import {
    Input,
    Component,
} from '@angular/core';

@Component({
    selector: 'cory-mat-loading',
    template: `
<mat-progress-bar
style="position: fixed; top: 0px; left: 0px; width: 100%; z-index: 100000;"
*ngIf="visible || requestCount > 0"
color="primary"
mode="indeterminate"></mat-progress-bar>
`,
})
export class Loading {

    @Input('cory-visible')
    visible: boolean = false;

    get requestCount() {
        return window.corifeus.core.http.counter;
    }

    constructor() {
        //   console.log(this.visible);
    }
}