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

ros.sh

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);
     
        
      }
    }