mirror of
https://github.com/mempool/mempool.git
synced 2025-03-01 01:00:00 +01:00
20 lines
532 B
TypeScript
20 lines
532 B
TypeScript
import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
|
|
import { StateService } from 'src/app/services/state.service';
|
|
|
|
@Component({
|
|
selector: 'app-blockchain',
|
|
templateUrl: './blockchain.component.html',
|
|
styleUrls: ['./blockchain.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class BlockchainComponent implements OnInit {
|
|
network: string;
|
|
|
|
constructor(
|
|
private stateService: StateService,
|
|
) {}
|
|
|
|
ngOnInit() {
|
|
this.network = this.stateService.network;
|
|
}
|
|
}
|