【发布时间】:2014-03-13 19:09:47
【问题描述】:
我有这样的布局。我正在为angular masonry 使用passsy 扩展名。
<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不是函数。
任何帮助将不胜感激!
【问题讨论】:
-
为什么不用砖石? github.com/passy/angular-masonry
-
@mainguy 我正在整合 passy 的 angular-masonry。但是有点问题。如果你用过。请查看我的问题任何帮助将不胜感激
标签: css angularjs jquery-masonry jquery-isotope