In my angular app. I am using checkboxes. I get my data from API. If the value of the checkbox is true. the content of the input value shows a tickmark. How can i display a "X" in the checkbox if the value is false instead of empty checkbox. please guide me.
HTML
<input class="input" [ngclass]="testForm.get('test').value === false?'unchecked':none " type="checkbox" formControlName="test" readonly>
css
.unchecked {
content: 'X';
color: #fff;
}