我正在尝试将MixItUp插件用于portofolio,到目前为止一切正常:
<div id="Container" class="container" ng-controller="PortofolioController">
<div class="mix category-1" data-myorder="1"></div>
<div class="mix category-1" data-myorder="2"></div>
<div class="mix category-1" data-myorder="3"></div>
<div class="mix category-2" data-myorder="4"></div>
<div class="mix category-1" data-myorder="5"></div>
<div class="mix category-1" data-myorder="6"></div>
<div class="mix category-2" data-myorder="7"></div>
<div class="mix category-2" data-myorder="8"></div>
<div class="gap"></div>
<div class="gap"></div>
</div>
但我希望Container
的元素从控制器动态收集并放在portofolio中,所以我尝试了:
<div id="Container" class="container" ng-controller="PortofolioController">
<div ng-repeat="element in portofolio.elements">
<div class="mix category-1" data-myorder="1">{{element.something}}</div>
</div>
<div class="gap"></div>
<div class="gap"></div>
</div>
但是没有出现任何内容且MixItUp插件不起作用,我无法理解它们之间存在什么冲突。任何帮助为什么会发生这种情况?
更新
当代码执行元素更改的类并且存在ng-binding
。
<div class="mix category-1 ng-binding" data-myorder="0" data-orig-pos-x="15" data-orig-pos-y="78" style="-webkit-transition: none; transition: none;">Hydrogen</div>
我认为这是问题,因为MixItUp使用类的名称。有没有办法删除它?