How come this works fine. I.E isPrint shows as true or false on clicking the slide toggle
<div>
<mat-slide-toggle [(ngModel)]="isPrint" #toggleSlide></mat-slide-
toggle>
isPrint: {{ isPrint }}
</div>
But this does not work and gives the error ERROR Error: No value accessor for form control with an unspecified name attribute
<div>
<mat-button-toggle [(ngModel)]="isPrint" #toggleBtn>Toggle</mat-button-toggle>
isPrint: {{ isPrint }}
</div>
What am I not doing correctly?