Hello everyone, I am new to Angular and currently working on displaying a table based on the value of a toggle button. I have implemented a toggle button using Angular material, but I'm struggling to pass the data to my controller.
I would really appreciate any assistance with this issue. Below is the code I have been working on:
<mat-button-toggle-group #group="matButtonToggleGroup"[(value)]="groupValue">
<mat-button-toggle value="active">Active</mat-button-toggle>
<mat-button-toggle value="inactive">Inactive</mat-button-toggle>
</mat-button-toggle-group>