I have a few checkboxes and on Checked event I am submitting the data id back to server instead of the true or false value, but I am not able to bind checkbox status after reloading the page. How can I check if the checkbox value exists in database?
This is My HTML code
<span *ngFor = "let groupid of result" >
<ng-container *ngIf ="regTypeSelectedOption === 'my group'">
<div *ngFor="let group of my_groupList; let i = index" >
<label>
<input type="checkbox" value="{{group._id}"
[name]="videodisplaygroup"
[checked] = "group._id ==groupid.id"
(change)="getCheckboxValues($event,group)" />
<span innerHTML="{{group.group_name}}"></span>
</label>
</div>
</ng-container>
</span >
videodisplaygroup: Array(2) 0: "5c9b52580737ae188c5be14b" 1: "5c8f6c2ea2c9eb1418f8fb1b"