Skip to content

Commit 1b03baf

Browse files
committed
feat: on push strategy for inline-loading component, part of carbon-design-system#3066
Signed-off-by: rrothschild18 <raultonello18@gmail.com>
1 parent 045c801 commit 1b03baf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/inline-loading/inline-loading.component.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import {
33
Input,
44
Output,
55
EventEmitter,
6-
HostBinding
6+
HostBinding,
7+
ChangeDetectionStrategy
78
} from "@angular/core";
89

910
export enum InlineLoadingState {
@@ -74,7 +75,8 @@ export enum InlineLoadingState {
7475
<p class="cds--inline-loading__text">{{errorText}}</p>
7576
}
7677
}
77-
`
78+
`,
79+
changeDetection: ChangeDetectionStrategy.OnPush
7880
})
7981
export class InlineLoading {
8082
InlineLoadingState = InlineLoadingState;

0 commit comments

Comments
 (0)