<div \*ngFor="let serviceName of selectedServices_user" class="left-align-label"\>
<label style="text-align: left;"\>
<input class="left-align-label" type="checkbox" checked="true"\[(ngModel)\]="selectedServices_user\[serviceName\]" \[style.margin-top.px\]="i === 0 ? 10 : 0" style="text-align: left;"\>
</label\>
This is my html, please help me select all the checkboxes by default?
Tried everything from checked to checked="true" doesn't seem to work
Via Active questions tagged javascript - Stack Overflow https://ift.tt/OTmRClD
Comments
Post a Comment