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

21 lines
532 B
TypeScript
Raw Normal View History

import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { StateService } from 'src/app/services/state.service';
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 {
network: string;
2019-07-21 17:59:47 +03:00
constructor(
private stateService: StateService,
2019-07-21 17:59:47 +03:00
) {}
ngOnInit() {
this.network = this.stateService.network;
2019-07-21 17:59:47 +03:00
}
}