Skip to content

Commit

Permalink
Demo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Jan 7, 2022
1 parent 47bcc21 commit 0faea12
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 14 deletions.
10 changes: 8 additions & 2 deletions src/app/showcase/components/chart/barchart/barchartdemo.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
import {AppConfig} from '../../../domain/appconfig';

@Component({
templateUrl: './barchartdemo.html'
})
export class BarChartDemo {
export class BarChartDemo implements OnInit, OnDestroy {

basicData: any;

Expand Down Expand Up @@ -512,4 +512,10 @@ export class BarChartDemo {
}
};
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
10 changes: 8 additions & 2 deletions src/app/showcase/components/chart/combochart/comobochartdemo.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
import {AppConfig} from '../../../domain/appconfig';

@Component({
templateUrl: './combochartdemo.html'
})
export class ComboChartDemo {
export class ComboChartDemo implements OnInit, OnDestroy {

data: any;

Expand Down Expand Up @@ -169,4 +169,10 @@ export class ComboChartDemo {
}
};
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
import {AppConfig} from '../../../domain/appconfig';

@Component({
templateUrl: './doughnutchartdemo.html'
})
export class DoughnutChartDemo {
export class DoughnutChartDemo implements OnInit, OnDestroy {

data: any;

Expand Down Expand Up @@ -73,4 +73,10 @@ export class DoughnutChartDemo {
}
}
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
10 changes: 8 additions & 2 deletions src/app/showcase/components/chart/linechart/linechartdemo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {MessageService} from 'primeng/api';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
Expand All @@ -8,7 +8,7 @@ import {AppConfig} from '../../../domain/appconfig';
templateUrl: './linechartdemo.html',
providers: [MessageService]
})
export class LineChartDemo implements OnInit {
export class LineChartDemo implements OnInit, OnDestroy {

basicData: any;

Expand Down Expand Up @@ -301,4 +301,10 @@ export class LineChartDemo implements OnInit {
}
};
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
10 changes: 8 additions & 2 deletions src/app/showcase/components/chart/piechart/piechartdemo.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
import {AppConfig} from '../../../domain/appconfig';

@Component({
templateUrl: './piechartdemo.html'
})
export class PieChartDemo implements OnInit {
export class PieChartDemo implements OnInit, OnDestroy {

data: any;

Expand Down Expand Up @@ -73,4 +73,10 @@ export class PieChartDemo implements OnInit {
}
}
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
import {AppConfig} from '../../../domain/appconfig';

@Component({
templateUrl: './polarareachartdemo.html'
})
export class PolarAreaChartDemo {
export class PolarAreaChartDemo implements OnInit, OnDestroy {

data: any;

Expand Down Expand Up @@ -95,4 +95,10 @@ export class PolarAreaChartDemo {
}
}
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}
10 changes: 8 additions & 2 deletions src/app/showcase/components/chart/radarchart/radarchartdemo.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {Component, OnInit} from '@angular/core';
import {Component, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from 'rxjs';
import {AppConfigService} from '../../../service/appconfigservice';
import {AppConfig} from '../../../domain/appconfig';

@Component({
templateUrl: './radarchartdemo.html'
})
export class RadarChartDemo {
export class RadarChartDemo implements OnInit, OnDestroy {

data: any;

Expand Down Expand Up @@ -106,4 +106,10 @@ export class RadarChartDemo {
}
}
}

ngOnDestroy() {
if (this.subscription) {
this.subscription.unsubscribe();
}
}
}

0 comments on commit 0faea12

Please sign in to comment.