Html 在3个不同的分区中重复ng
我有一个引导类列为12的div在这个div中我有3个引导类列为4的div。 现在我从我的数据库中得到了一份菜系列表 我想用ng repeat(ng repeat)展示3个不同类别的菜肴(无重复): 数据响应:Html 在3个不同的分区中重复ng,html,angularjs,Html,Angularjs,我有一个引导类列为12的div在这个div中我有3个引导类列为4的div。 现在我从我的数据库中得到了一份菜系列表 我想用ng repeat(ng repeat)展示3个不同类别的菜肴(无重复): 数据响应: cuisine1 cuisine2 cuisine3 cuisine4 etc.. 在我的页面中,我想向他们展示如下内容: cuisine1 cuisine3 cuisine5 cuisine2 cuisin
cuisine1
cuisine2
cuisine3
cuisine4 etc..
在我的页面中,我想向他们展示如下内容:
cuisine1 cuisine3 cuisine5
cuisine2 cuisine4 cuisine5
有什么帮助吗?我如何使用1 ng repeat实现这一点这可能会对您有所帮助。您可以根据需求显示更多详细信息
var-app=angular.module(“myApp”,[]);
app.controller(“myCtrl”,函数($scope){
$scope.records=[
“烹饪1”,
“烹饪2”,
“烹饪3”,
“烹饪4”,
“烹饪5”
]
});代码>
.col-xs-4{
边框:1px纯黑;
}
{{x}
post your json array\这就是我想要的。谢谢你)欢迎你。很乐意帮忙。如果它解决了您的问题,请将此标记为答案。完成,正在等待30秒:)另外,请阅读这篇关于使用ng repeat和angular的最佳实践的文章。