2020-07-30 17:01:13 +07:00
|
|
|
import { Component, OnInit, OnDestroy, ChangeDetectionStrategy } from '@angular/core';
|
2020-02-16 22:15:07 +07:00
|
|
|
import { StateService } from 'src/app/services/state.service';
|
2020-07-30 17:01:13 +07:00
|
|
|
import { Subscription, Observable } from 'rxjs';
|
2019-07-21 17:59:47 +03:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-blockchain',
|
|
|
|
templateUrl: './blockchain.component.html',
|
2020-07-30 17:01:13 +07:00
|
|
|
styleUrls: ['./blockchain.component.scss'],
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
2019-07-21 17:59:47 +03:00
|
|
|
})
|
2020-07-30 17:01:13 +07:00
|
|
|
export class BlockchainComponent implements OnInit {
|
|
|
|
isLoading$: Observable<boolean>;
|
2019-07-21 17:59:47 +03:00
|
|
|
|
|
|
|
constructor(
|
2020-02-16 22:15:07 +07:00
|
|
|
private stateService: StateService,
|
2019-07-21 17:59:47 +03:00
|
|
|
) {}
|
|
|
|
|
|
|
|
ngOnInit() {
|
2020-07-30 17:01:13 +07:00
|
|
|
this.isLoading$ = this.stateService.isLoadingWebSocket$;
|
2019-07-21 17:59:47 +03:00
|
|
|
}
|
|
|
|
}
|