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

import { MatProgressBarModule } from '@angular/material/progress-bar';


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

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