Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
スピナーのコンポーネントクラス
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
You can’t perform that action at this time.