From f0ea9366305a1aed2f2ca3a0cd34896a5abdddc5 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Tue, 4 Jun 2024 13:08:28 +0200 Subject: [PATCH] refactor(docs-infra): mark the update component as OnPush (#56254) After inspecting and testing the adev-update-guide component it seems like it could be marked as OnPush. This change gets us closer to enabling zoneless for adev. PR Close #56254 --- adev/src/app/features/update/update.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adev/src/app/features/update/update.component.ts b/adev/src/app/features/update/update.component.ts index f3e0b0e868c..96f15529f56 100644 --- a/adev/src/app/features/update/update.component.ts +++ b/adev/src/app/features/update/update.component.ts @@ -1,4 +1,4 @@ -import {Component, HostListener, inject} from '@angular/core'; +import {ChangeDetectionStrategy, Component, HostListener, inject} from '@angular/core'; import {Step, RECOMMENDATIONS} from './recommendations'; import {Clipboard} from '@angular/cdk/clipboard'; import {CdkMenuModule} from '@angular/cdk/menu'; @@ -31,6 +31,7 @@ interface Option { IconComponent, ], standalone: true, + changeDetection: ChangeDetectionStrategy.OnPush, }) export default class AppComponent { protected title = '';