Skip to content
Snippets Groups Projects
Select Git revision
  • 57b0767bd9dd2452a71e634a67001bb744a46c27
  • main default
2 results

assessment.go

Blame
  • loader.service.ts 386 B
    import { Injectable } from '@angular/core';
    import { BehaviorSubject, Subject } from 'rxjs';
    
    @Injectable({
      providedIn: 'root'
    })
    export class LoaderService {
      isLoading$ = new BehaviorSubject<boolean>(false);
      loader = this.isLoading$.asObservable();
    
    
      constructor() { }
    
      show() {
        this.isLoading$.next(true);
       
     }
    
     hide() {
        this.isLoading$.next(false);
     
        
      }
    }