我有這樣的佈局。我使用passsy
擴展名爲angular masonry
。每當我用它在AngularJS中使用Angular Marquisry?
<masonry column-width="200">
<div class="masonry-brick" ng-repeat="data in comments">
<div ng-switch on="data.type">
<div ng-switch-when="hoots">
<article class="hoot_main">
//content goes here
//hoot_main is the main class for this div layout
</article>
</div>
</div>
</div>
<div ng-switch on="data.type">
<div ng-switch-when="article">
<article class="hoot_main">
//content goes here
//hoot_main is the main class for this div layout
</article>
</div>
</div>
<div ng-switch on="data.type">
<div ng-switch-when="story">
<article class="hoot_main">
//content goes here
//hoot_main is the main class for this div layout
</article>
</div>
</div>
</div>
</masonry>
瀏覽器是越來越忌用。用工具調試腳本說element.masonry
不是一個函數。
任何幫助,將不勝感激!
爲什麼不使用磚石作爲上市? https://github.com/passy/angular-masonry – mainguy
@mainguy我正在整合passy的角石工。但有一些問題。如果你已經使用它。請檢閱我的問題任何幫助,將不勝感激 –