Adder Global Loading spiner for api calls
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class LoaderService {
|
||||
private loading: boolean = false;
|
||||
|
||||
setLoading(loading: boolean){
|
||||
this.loading = loading;
|
||||
}
|
||||
|
||||
getLoading(): boolean{
|
||||
return this.loading;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user