mirror of
https://github.com/mempool/mempool.git
synced 2025-02-28 16:58:32 +01:00
20 lines
541 B
TypeScript
20 lines
541 B
TypeScript
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-nodes-ranking',
|
|
templateUrl: './nodes-ranking.component.html',
|
|
styleUrls: ['./nodes-ranking.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class NodesRanking implements OnInit {
|
|
type: string;
|
|
|
|
constructor(private route: ActivatedRoute) {}
|
|
|
|
ngOnInit(): void {
|
|
this.route.data.subscribe(data => {
|
|
this.type = data.type;
|
|
});
|
|
}
|
|
}
|