我正在尝试将 MixItUp 与 AngularJS 一起使用,它可以与按钮一起使用,但是当尝试将它与下拉菜单一起使用时,它不会。
<select class="filter" ng-model="selectedCategory"
ng-options="'.' + cat.id as cat.name for cat in categories track by cat.id">
<option value="">-- Category --</option>
</select>
<pre>{{ selectedCategory }}</pre>
<div mix-it-up class="container">
<div class="mix {{widget.categoryId}}" data-myorder="{{widget.name}}"
ng-repeat="widget in widgets">
{{widget.name}}
</div>
<div class="gap"></div>
<div class="gap"></div>
</div>