Optimize change detection

This commit is contained in:
softsimon 2023-06-04 10:32:24 +04:00
parent c49626aefc
commit 9d4b58604b
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -1,10 +1,11 @@
import { Component, Input, OnChanges } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, OnChanges } from '@angular/core';
@Component({ @Component({
selector: 'app-confirmations', selector: 'app-confirmations',
templateUrl: './confirmations.component.html', templateUrl: './confirmations.component.html',
styleUrls: ['./confirmations.component.scss'], styleUrls: ['./confirmations.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class ConfirmationsComponent implements OnChanges { export class ConfirmationsComponent implements OnChanges {
@Input() chainTip: number; @Input() chainTip: number;