mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
Optimize change detection
This commit is contained in:
parent
c49626aefc
commit
9d4b58604b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user