Skip to content

Commit 9bb6818

Browse files
feat: on push strategy for content switcher
1 parent 8870430 commit 9bb6818

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content-switcher/content-switcher.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {
77
EventEmitter,
88
AfterViewInit,
99
HostListener,
10-
ElementRef
10+
ElementRef,
11+
ChangeDetectionStrategy
1112
} from "@angular/core";
1213
import { ContentSwitcherOption } from "./content-switcher-option.directive";
1314
import { isFocusInLastItem, isFocusInFirstItem } from "carbon-components-angular/common";
@@ -46,7 +47,8 @@ import { isFocusInLastItem, isFocusInFirstItem } from "carbon-components-angular
4647
role="tablist">
4748
<ng-content />
4849
</div>
49-
`
50+
`,
51+
changeDetection: ChangeDetectionStrategy.OnPush
5052
})
5153
export class ContentSwitcher implements AfterViewInit {
5254
@Input() ariaLabel = "content switcher";

0 commit comments

Comments
 (0)