Skip to content

Commit f0ea936

Browse files
refactor(docs-infra): mark the update component as OnPush (angular#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 angular#56254
1 parent b0546da commit f0ea936

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adev/src/app/features/update/update.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, HostListener, inject} from '@angular/core';
1+
import {ChangeDetectionStrategy, Component, HostListener, inject} from '@angular/core';
22
import {Step, RECOMMENDATIONS} from './recommendations';
33
import {Clipboard} from '@angular/cdk/clipboard';
44
import {CdkMenuModule} from '@angular/cdk/menu';
@@ -31,6 +31,7 @@ interface Option {
3131
IconComponent,
3232
],
3333
standalone: true,
34+
changeDetection: ChangeDetectionStrategy.OnPush,
3435
})
3536
export default class AppComponent {
3637
protected title = '';

0 commit comments

Comments
 (0)