Skip to content

Commit 2bc84d1

Browse files
committed
feat(package): changed the change detection's strategy to onPush
1 parent 5913fa6 commit 2bc84d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/module/component/mat-password-strength/mat-password-strength.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
1+
import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
22
import {AbstractControl, FormControl, Validators} from '@angular/forms';
33

44
export enum Colors {
@@ -19,7 +19,8 @@ export enum Criteria {
1919
selector: 'mat-password-strength',
2020
exportAs: 'matPasswordStrength',
2121
templateUrl: './mat-password-strength.component.html',
22-
styleUrls: ['./mat-password-strength.component.scss']
22+
styleUrls: ['./mat-password-strength.component.scss'],
23+
changeDetection: ChangeDetectionStrategy.OnPush
2324
})
2425
export class MatPasswordStrengthComponent implements OnInit, OnChanges {
2526

0 commit comments

Comments
 (0)