Created
September 22, 2019 08:10
-
-
Save takuya-nakayasu/58228430981fca186068ee6684714f8b to your computer and use it in GitHub Desktop.
スピナーのコンポーネントクラス
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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