aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/spinner/spinner.component.ts
blob: 0ce5d20740e1168efa470066219726de1f36a34e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Component, Input } from '@angular/core';
import { Subject } from 'rxjs/Subject';

@Component({
  selector : 'spinner-component',
  templateUrl : './spinner.component.html',
  styleUrls : ['./spinner.component.scss']
})
export class SpinnerComponent {
  show : boolean = false;
  static showSpinner: Subject<boolean> = new Subject<boolean>();

  constructor(){
    SpinnerComponent.showSpinner.subscribe((status) => {
      this.show = status;
    })
  }
}