Skip to content

Commit 261ed03

Browse files
committed
Add console warn to deprecated component
1 parent f9d7efc commit 261ed03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/switch/switch.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,7 @@ export class SwitchComponent extends CheckboxComponent {
120120
constructor(protected changeDetectorRef: ChangeDetectorRef) {
121121
super(changeDetectorRef);
122122
SwitchComponent.switchCount++;
123+
124+
console.warn("`ibm-switch` has been deprecated in favour of `ibm-toggle`");
123125
}
124126
}

0 commit comments

Comments
 (0)