У меня такой макет. Я использую расширение passsy
для angular masonry
.Использование угловой кладки в AngularJS?
<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 Я интегрирую угловую кладку Пасси. Но есть проблема. Если вы его использовали. Просьба рассмотреть мой вопрос, любая помощь будет оценена –