mempool/frontend/src/app/components/blockchain/blockchain.component.ts

22 lines
623 B
TypeScript
Raw Normal View History

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