Having an issue in my Angular application with the dashboard page. I've created a button for start or stop (toggle functionality) but it's not working as expected.
.component.ts
toggleCollapse(jammer) {
this.jammer.isCollapsed ? 'START' : 'STOP'
this.jammer.isCollapsed ? 'START' : 'STOP'
}
.component.html
<button
type="button"
class="btn btn-warning"
(click)="toggleCollapse()">START</button>
Struggling to get this toggle function to work correctly. Any assistance would be greatly appreciated!