mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-19 14:38:07 +01:00
18 lines
333 B
TypeScript
18 lines
333 B
TypeScript
|
|
import { Component } from '@angular/core';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'ngx-spinner',
|
||
|
|
templateUrl: 'spinner.component.html',
|
||
|
|
styleUrls: ['spinner.component.scss'],
|
||
|
|
})
|
||
|
|
|
||
|
|
export class SpinnerComponent {
|
||
|
|
|
||
|
|
loading = false;
|
||
|
|
|
||
|
|
toggleLoadingAnimation() {
|
||
|
|
this.loading = true;
|
||
|
|
setTimeout(() => this.loading = false, 3000);
|
||
|
|
}
|
||
|
|
}
|