2022-08-17 12:53:26 +02:00
|
|
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
2022-08-17 16:00:30 +02:00
|
|
|
import { ActivatedRoute } from '@angular/router';
|
2022-08-17 12:53:26 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-nodes-ranking',
|
|
|
|
templateUrl: './nodes-ranking.component.html',
|
|
|
|
styleUrls: ['./nodes-ranking.component.scss'],
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
|
|
})
|
|
|
|
export class NodesRanking implements OnInit {
|
2022-08-17 16:00:30 +02:00
|
|
|
type: string;
|
|
|
|
|
|
|
|
constructor(private route: ActivatedRoute) {}
|
2022-08-17 12:53:26 +02:00
|
|
|
|
|
|
|
ngOnInit(): void {
|
2022-08-17 16:00:30 +02:00
|
|
|
this.route.data.subscribe(data => {
|
|
|
|
this.type = data.type;
|
|
|
|
});
|
2022-08-17 12:53:26 +02:00
|
|
|
}
|
|
|
|
}
|