I can\'t make the initialization of a mat-slide-toggle in a Reactive Form.
I have something like in the template
IMHO, there's some issue with your code. You should do something like this:
{{X.value ? 'ON' : 'OFF'}}
And in controller you'll need to assign the formControl so, use = instead of : ie:
formControl
=
:
X = new FormControl(true, [ Validators.required ]);