【问题标题】:Angular Material md-checkbox group issuesAngular Material md-checkbox 组问题
【发布时间】:2015-10-08 19:39:51
【问题描述】:

允许 md-checkbox 遍历元素数组,如下所示:

<md-checkbox ng-repeat="cat in categorias" value="{{cat.id}}" ng-checked="{{cat.id.indexOf(item.cats) > -1}}" ng-model="item.cats">{{cat.name}}</md-checkbox>

并使用选定值列表填充模型,例如http://vitalets.github.io/checklist-model/

感谢反馈...

Plunker http://plnkr.co/edit/t4jDNDnq6NObaeLgR6kK?p=preview

目前还没有解决办法,我用的是checklist directive

【问题讨论】:

标签: angularjs checkbox angularjs-directive angular-material


【解决方案1】:

以前,checklist-model 不能用于 &lt;md-checkbox&gt;。从版本 0.3.0 开始,这是可能的。查看新版本。

【讨论】:

  • 我可以在 Angular 2 中使用 checklist-model 吗??
  • 这个我没试过,但它是为angular1设计的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-06-16
  • 1970-01-01
  • 2017-09-08
  • 2016-07-11
  • 1970-01-01
  • 2017-07-10
  • 2016-07-11
相关资源
最近更新 更多