muicss/mui

How to use mui-select with AngularJS with dynamic data

開放

#185 建立於 2016年12月7日

 (6 則留言) (0 個反應) (0 位負責人)JavaScript (441 個分叉)batch import
enhancementhelp wantedpriority: high

倉庫指標

星標
 (4,524 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I am able to perfectly utilise the mui-dropdown using the code below, however when I try a similar approach with the mui-select option it doesn't generate correctly.

<mui-dropdown color="primary" label="Select a team" > <mui-dropdown-item ng-repeat="team in teams" link="#/link1">{{ team.name }}</mui-dropdown-item> </mui-dropdown>

I am trying to generate the select with the code below, but when I reload the page and click the select menu I only see one option (I am expecting 4) and it has {{option.label}} (note - the select is already opened by default - i do not want this to happen) <mui-select ng-model="rule.selectedAction" ng-options="team.name as label in teams" use-default> <mui-option value="{{ team.id }}" label="{{ team.name }}"></mui-option> </mui-select>

Please advise on my issue

貢獻者指南