Having trouble implementing toggle functionality in Angular where different text is displayed when a button is toggled. I keep getting an error in my code, can anyone assist? See the code below:
HTML
<tr>
<td>Otto</td>
<td>
<button class="btn-primary text-dark bg-white">
{{isChecked ? 'ACCESS' : 'NO ACCESS'}}
</button>
</td>
<td>
<div class="form-check form-switch">
<input
class="form-check-input"
type="checkbox"
(changed)="isChecked=$event"
checked
/>
</div>
</td>
</tr>
TS
isChecked: boolean;