Subscription refactoring to increase performance.

This commit is contained in:
softsimon
2020-07-30 17:01:13 +07:00
parent bb6272469d
commit 58a6bbd88b
8 changed files with 89 additions and 60 deletions

View File

@@ -1,10 +1,11 @@
import { Component, Input, OnChanges } from '@angular/core';
import { Component, Input, OnChanges, ChangeDetectionStrategy } from '@angular/core';
import * as Chartist from 'chartist';
@Component({
selector: 'app-fee-distribution-graph',
templateUrl: './fee-distribution-graph.component.html',
styleUrls: ['./fee-distribution-graph.component.scss']
styleUrls: ['./fee-distribution-graph.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FeeDistributionGraphComponent implements OnChanges {
@Input() feeRange;