I'm trying to use mat-checkboxes as input in my form, but can't really find anything on docs regarding it.
Html
<section class="checkbox-section">
<mat-checkbox [(ngModel)]="bChecked">Blogs</mat-checkbox>
<mat-checkbox [(ngModel)]="wChecked">Web</mat-checkbox>
<mat-checkbox [(ngModel)]="oChecked">Online News</mat-checkbox>
</section>
Typescript
public form = {
name: null,
email: null,
birthday: null,
company: null,
interests: [],
newsletter: null,
address: null,
password: null,
password_confirmation: null,
};
I'm trying to get the values of the checkboxes which are static and then push to my interests array