假设我收到一个包含 15 个以上对象的对象字面量,并且我需要将它们显示在一个漂亮的布局中(而不是全部排成一行),那么控制何时应该中断/页面应该结束的最有效方法是什么?
现在我在表格行上使用 ng-repeat,结果是一个带有一列的长而薄的表格。
编辑澄清。可以在对象/更多参数中包含对象。这是我的对象:
$scope.zones = [
{"name": "Zone 1",
"activity": "1"},
{"name": "Zone 2",
"activity": "1"},
{"name": "Zone 3",
"activity": "0"},
{"name": "Zone 4",
"activity": "0"},
{"name": "Zone 5",
"activity": "0"},
{"name": "Zone 6",
"activity": "0"},
{"name": "Zone 7",
"activity": "1"},
{"name": "Zone 8",
"activity": "0"},
{"name": "Zone 9",
"activity": "0"},
{"name": "Zone 10",
"activity": "0"},
{"name": "Zone 11",
"activity": "1"},
{"name": "Zone 12",
"activity": "1"},
{"name": "Zone 13",
"activity": "0"},
{"name": "Zone 14",
"activity": "0"},
{"name": "Zone 15",
"activity": "1"},
];