We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31be6d5 commit 73bf531Copy full SHA for 73bf531
src/toggle/toggle.component.ts
@@ -102,6 +102,16 @@ export class Toggle extends Checkbox {
102
*/
103
static toggleCount = 0;
104
105
+ /**
106
+ * Variable set the value to input true/false.
107
+ */
108
+ value = false;
109
+
110
111
+ * Variable set the name to input same as Id.
112
113
+ name = "toggle-" + Toggle.toggleCount;
114
115
/**
116
* Text that is set on the left side of the toggle.
117
@@ -193,6 +203,7 @@ export class Toggle extends Checkbox {
193
203
this.change.emit(event);
194
204
/* end deprecation */
195
205
206
+ this.value = this.checked;
196
207
this.checkedChange.emit(this.checked);
197
208
this.propagateChange(this.checked);
198
209
}
0 commit comments