File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 44 EventEmitter ,
55 HostBinding ,
66 Input ,
7- TemplateRef
7+ ChangeDetectionStrategy
88} from "@angular/core" ;
99import { Tag } from "./tag.component" ;
1010
@@ -28,7 +28,8 @@ import { Tag } from "./tag.component";
2828 <svg cdsIcon="close" size="16"></svg>
2929 </button>
3030 }
31- `
31+ ` ,
32+ changeDetection : ChangeDetectionStrategy . OnPush
3233} )
3334export class TagFilter extends Tag {
3435 @Input ( ) closeButtonLabel = "Clear Filter" ;
Original file line number Diff line number Diff line change 11import {
22 Component ,
33 Input ,
4- HostBinding
4+ HostBinding ,
5+ ChangeDetectionStrategy
56} from "@angular/core" ;
67
78/**
@@ -38,7 +39,8 @@ export type TagType = "red" |
3839 <ng-content />
3940 </span>
4041 }
41- `
42+ ` ,
43+ changeDetection : ChangeDetectionStrategy . OnPush
4244} )
4345export class Tag {
4446 /**
You can’t perform that action at this time.
0 commit comments