blob: 0ce5d20740e1168efa470066219726de1f36a34e [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import { Component, Input } from '@angular/core';
2import { Subject } from 'rxjs/Subject';
3
4@Component({
5 selector : 'spinner-component',
6 templateUrl : './spinner.component.html',
7 styleUrls : ['./spinner.component.scss']
8})
9export class SpinnerComponent {
10 show : boolean = false;
11 static showSpinner: Subject<boolean> = new Subject<boolean>();
12
13 constructor(){
14 SpinnerComponent.showSpinner.subscribe((status) => {
15 this.show = status;
16 })
17 }
18}