2
votes

I recentrly started using the material.angular.io components on my app: https://material.angular.io/components/component/button-toggle

Im seeing in the doc that the button-toggle component has an @Input property called selected that is not setting as selected my button like the disabled property is setting as disabled the other one... I'm doing something wrong?

Here is a plunkr: https://plnkr.co/edit/tGZVAbJZpYDxxmKyPRKg?p=preview

1

1 Answers

2
votes

In the documentation selected is listed for MdButtonToggleGroup. For MdButtonToggle, the property you need to use is checked.

I have forked your Plunker and edited to show the tab 'One' is selected/checked, Demo.

Let me know if this fixes your issue :)