我在尝试用角度和剑道渲染树视图时遇到了很大的困难。这是我到目前为止的代码:
Website1.controller("FieldsController1", function ($scope) {
$scope.things = {
data: [
{
text: "Furniture", items: [
{ text: "Tables & Chairs" },
{ text: "Sofas" },
{ text: "Occasional Furniture" }
]
},
{
text: "Decor", items: [
{ text: "Bed Linen" },
{ text: "Curtains & Blinds" },
{ text: "Carpets" }
]
}
]
};
上面是控制器。这是标记。
<ul kendo-tree-view k-hierarchical-data-source="things">
</ul>
另外,是否有任何关于如何执行此操作的文档?