Skip to content

Commit 2e4537a

Browse files
committed
fix(toggle): add checked getter to not make breaking change
1 parent ba80ab8 commit 2e4537a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/components/src/toggle-switch/toggle-switch.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export class ToggleSwitchComponent implements ControlValueAccessor {
4848
@Output()
4949
public readonly checkedChange: EventEmitter<boolean> = new EventEmitter();
5050

51+
public get checked() {
52+
return this.isChecked;
53+
}
54+
5155
public isChecked: boolean = false;
5256
public isDisabled: boolean = false;
5357

0 commit comments

Comments
 (0)