Can't bind to 'ngModel' since it isn't a known property of 'mat-slide-toggle'. code example
Example: Can't bind to 'ngModel' since it isn't a known property of 'input'.
import { FormsModule } from '@angular/forms';
[...]
@NgModule({
imports: [
[...]
FormsModule
],
[...]
})