1 import { Component, OnDestroy } from '@angular/core';
2 import { ActivatedRoute } from '@angular/router';
5 selector: 'cd-performance-counter',
6 templateUrl: './performance-counter.component.html',
7 styleUrls: ['./performance-counter.component.scss']
9 export class PerformanceCounterComponent implements OnDestroy {
12 routeParamsSubscribe: any;
14 constructor(private route: ActivatedRoute) {
15 this.routeParamsSubscribe = this.route.params.subscribe(
16 (params: { type: string; id: string }) => {
17 this.serviceId = params.id;
18 this.serviceType = params.type;
24 this.routeParamsSubscribe.unsubscribe();