From f3907ceeafc7b9cc36602647ed03727df82109af Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Nov 2023 09:15:42 +0100 Subject: [PATCH] Fix client registration performance --- client/src/app/+signup/shared/signup-mascot.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app/+signup/shared/signup-mascot.component.ts b/client/src/app/+signup/shared/signup-mascot.component.ts index a96ccffee..c325f46fc 100644 --- a/client/src/app/+signup/shared/signup-mascot.component.ts +++ b/client/src/app/+signup/shared/signup-mascot.component.ts @@ -1,4 +1,4 @@ -import { Component, Input } from '@angular/core' +import { ChangeDetectionStrategy, Component, Input } from '@angular/core' import { DomSanitizer } from '@angular/platform-browser' const images = { @@ -14,7 +14,8 @@ export type MascotImageName = keyof typeof images @Component({ selector: 'my-signup-mascot', styleUrls: [ './signup-mascot.component.scss' ], - template: `
` + template: `
`, + changeDetection: ChangeDetectionStrategy.OnPush }) export class SignupMascotComponent { @Input() imageName: MascotImageName