Skip to content

Instantly share code, notes, and snippets.

@takuya-nakayasu
Created September 22, 2019 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya-nakayasu/58228430981fca186068ee6684714f8b to your computer and use it in GitHub Desktop.
Save takuya-nakayasu/58228430981fca186068ee6684714f8b to your computer and use it in GitHub Desktop.
スピナーのコンポーネントクラス
import { Component } from '@angular/core';
import { Subject } from 'rxjs';
import { SpinnerService } from '../../services/spinner.service';
@Component({
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