lanuage.component.html
<form method="post" enctype="multipart/form-data">
<mat-checkbox class="versionstyle" name="languageenabled"[(ngModel)]="languageObj.languageenabled">Enabled</mat-checkbox>
</form>
I want to make checkbox is checked by default in angular6 , i search in google and apply so many solution but it does not work.
ngModel's value to true for the one you want to be defaultthis.languageObj.languageenabled = truefor example. (And also, your HTML shouldn't have thethisbit in it)languageenabledproperty has been typed as a string, which is an issue somewhere within your code.