1 import { Component, OnDestroy, OnInit } 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 OnInit, OnDestroy {
12 routeParamsSubscribe: any;
14 constructor(private route: ActivatedRoute) { }
17 this.routeParamsSubscribe = this.route.params.subscribe(
18 (params: { type: string; id: string }) => {
19 this.serviceId = params.id;
20 this.serviceType = params.type;
26 this.routeParamsSubscribe.unsubscribe();