Css 在AngularJS中使用棱角砌体?
我有一个这样的布局。我正在使用Css 在AngularJS中使用棱角砌体?,css,angularjs,jquery-masonry,jquery-isotope,Css,Angularjs,Jquery Masonry,Jquery Isotope,我有一个这样的布局。我正在使用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"> <articl
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>
//内容在这里
//hoot_main是这个div布局的主类
//内容在这里
//hoot_main是这个div布局的主类
//内容在这里
//hoot_main是这个div布局的主类
我每次使用浏览器都会被挂断。使用工具调试脚本时会显示元素。砌体
不是一个函数
任何帮助都将不胜感激 嗯,目前我在家里用笔记本电脑工作,我无法让passy的版本也运行,也无法指出这个问题。但这就是我现在能提供给你的: 根据我在某处读到的内容,我制定了一个非常简单的指令:
app.directive('masonry', function() {
return {
restrict: 'AC',
controller: function($scope) {
return $scope.$watch(function(e) {
$scope.masonry.reloadItems();
return $scope.masonry.layout();
});
},
link: function(scope, elem, attrs) {
var container=elem[0];
var options='';
return scope.masonry = new Masonry(container,options);
}
};
正如你所看到的,到目前为止,它没有任何选择。当我周一上班时,我会在适当的双屏显示器上查看我的资料来源,并为您提供更好的版本。
我妻子开始看我了,我现在需要把笔记本电脑收起来-\
你可以看到它现在有点起作用了。也许这能帮你。同时,您可以在问题中添加一些json数据吗?祝你现在周末愉快 我有这个错误,通过包含原始的砖石代码来修复它。我还认为这是一个纯角度端口。为了让Passy的angularjs指令正常工作,必须包含索引文件中列出的所有文件
为什么不使用砌体@我正在整合passy的棱角砌体。但是有一些问题。如果你用过的话。请回顾我的问题,任何帮助都将不胜感激谢谢!!我想出来了。帕西正在工作。现在需要对passy数据进行一些数据优化load@Creator你能分享一下你是如何修复它的吗?