Javascript AngularJS选择+多属性和默认角度选项

Javascript AngularJS选择+多属性和默认角度选项,javascript,angularjs,Javascript,Angularjs,我正在尝试使用angularJS select指令选择多个值: <select class="form-control genre-list" ng-model="filteredGenre" ng-options="g.name as (g.name + ' (' + g.moviesCount + ')') for g in genres" ng-change="filterGenre()" multiple> <option value="">All<

我正在尝试使用angularJS select指令选择多个值:

<select class="form-control genre-list" ng-model="filteredGenre" ng-options="g.name as (g.name + ' (' + g.moviesCount + ')') for g in genres" ng-change="filterGenre()" multiple>
    <option value="">All</option>
</select>
如果删除多属性,则默认所有选项将出现在我的列表中,并在默认情况下处于选中状态

但通过这个多选项,我可以看到在$scope.genres设置为列表之前,所有内容都会短暂显示。之后,此默认选项将消失。 ng multiple属性不适用于此处注释中描述的数组数据模型


有人已经遇到过这种冲突吗?

你能发布小提琴或普朗克吗?流派中是否有延迟?例如,来自服务器响应。因为如果没有,我就无法重现你的问题:@Yoshi,放入$timeout或$http.get'some.json':@maxishoustin即使有一个假延迟和一个正确初始化的流派数组,我也无法重现它。是的,类型来自$ressource调用
$scope.genres = [];
$scope.filteredGenre = [];