diff --git a/src/input/password-input-label.component.ts b/src/input/password-input-label.component.ts index cf2843e9e3..90b3c1694c 100644 --- a/src/input/password-input-label.component.ts +++ b/src/input/password-input-label.component.ts @@ -7,7 +7,8 @@ import { TemplateRef, ViewChild, ChangeDetectorRef, - ContentChild + ContentChild, + ChangeDetectionStrategy } from "@angular/core"; import { PasswordInput } from "./password.directive"; import { BaseIconButton } from "carbon-components-angular/button"; @@ -149,7 +150,8 @@ import { BaseIconButton } from "carbon-components-angular/button"; } } - ` + `, + changeDetection: ChangeDetectionStrategy.OnPush }) /** * Represents the Password Input Label Component. diff --git a/src/input/text-input-label.component.ts b/src/input/text-input-label.component.ts index 0c43bd358a..1c2cc0874c 100644 --- a/src/input/text-input-label.component.ts +++ b/src/input/text-input-label.component.ts @@ -1,6 +1,7 @@ import { AfterContentInit, AfterViewInit, + ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, @@ -124,7 +125,8 @@ import { } } - ` + `, + changeDetection: ChangeDetectionStrategy.OnPush }) export class TextInputLabelComponent implements AfterViewInit, AfterContentInit { /** diff --git a/src/input/textarea-label.component.ts b/src/input/textarea-label.component.ts index 470e2b4fbc..da2dbe02f2 100644 --- a/src/input/textarea-label.component.ts +++ b/src/input/textarea-label.component.ts @@ -7,7 +7,8 @@ import { TemplateRef, ViewChild, ContentChild, - ChangeDetectorRef + ChangeDetectorRef, + ChangeDetectionStrategy } from "@angular/core"; import { TextArea } from "./text-area.directive"; @@ -137,7 +138,8 @@ import { TextArea } from "./text-area.directive"; } } } - ` + `, + changeDetection: ChangeDetectionStrategy.OnPush }) export class TextareaLabelComponent implements AfterViewInit { /**