Angular 2 material 个组件已选择

Angular 2 material components selected

我最近开始在我的应用程序中使用 material.angular.io 组件: https://material.angular.io/components/component/button-toggle

我在文档中看到 button-toggle 组件有一个名为 selected@Input 属性,它没有设置为选中我的按钮,例如禁用 属性 将另一个设置为禁用...我做错了什么?

这是一个 plunkr:https://plnkr.co/edit/tGZVAbJZpYDxxmKyPRKg?p=preview

在文档中 selected 被列为 MdButtonToggleGroup。对于 MdButtonToggle,您需要使用的 属性 是 checked

我已经分叉了你的 Plunker 并进行了编辑以显示选项卡 'One' 是 selected/checked、Demo

如果这能解决您的问题,请告诉我:)