Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Component } from '@angular/core';
import { Subject } from 'rxjs';
import { SpinnerService } from '../../services/spinner.service';
selector: 'app-spinner',
templateUrl: './spinner.component.html',
styleUrls: ['./spinner.component.scss']
export class SpinnerComponent {
public color = 'primary';
public mode = 'indeterminate';
public value = 50;
public isLoading: Subject<boolean> = this.spinnerService.isLoading;
constructor(private spinnerService: SpinnerService) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.