From 8e954d59db1622ea20f55693cf01379f4ca532fa Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 17 Jan 2023 03:22:18 +0400 Subject: [PATCH] Use OnPush change detection --- .../src/app/shared/components/truncate/truncate.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/shared/components/truncate/truncate.component.ts b/frontend/src/app/shared/components/truncate/truncate.component.ts index 27e705997..9edc6ddb2 100644 --- a/frontend/src/app/shared/components/truncate/truncate.component.ts +++ b/frontend/src/app/shared/components/truncate/truncate.component.ts @@ -1,9 +1,10 @@ -import { Component, Input, Inject, LOCALE_ID } from '@angular/core'; +import { Component, Input, Inject, LOCALE_ID, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-truncate', templateUrl: './truncate.component.html', - styleUrls: ['./truncate.component.scss'] + styleUrls: ['./truncate.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, }) export class TruncateComponent { @Input() text: string;