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.
17 lines
335 B
TypeScript
17 lines
335 B
TypeScript
|
2 weeks ago
|
import { Injectable } from '@angular/core';
|
||
|
|
import { NgxSpinnerService } from 'ngx-spinner';
|
||
|
|
|
||
|
|
@Injectable({
|
||
|
|
providedIn: 'root'
|
||
|
|
})
|
||
|
|
export class SpinnerService {
|
||
|
|
|
||
|
|
constructor(private spinner: NgxSpinnerService) { }
|
||
|
|
|
||
|
|
IsBusy(state:boolean) {
|
||
|
|
if (state == true)
|
||
|
|
this.spinner.show();
|
||
|
|
else
|
||
|
|
this.spinner.hide();
|
||
|
|
}}
|