Set id of the generated element

1k views Asked by At

I am using angular-kendo. Is there any option to set the id of the generated element.

<div  ng-controller="HomeCtrl" kendo-tree-view k-options="subjects"></div>

Becomes an ul but I would like to set the id of this ul in some way.

1

There are 1 answers

1
Atanas Korchev On BEST ANSWER

You cannot set the "id" of the generated ul element. However you can set the id of the div itself:

<div ng-controller="HomeCtrl" id="treeview" kendo-tree-view k-options="subjects"></div>

Here is a live demo: http://jsbin.com/ezOPUta/2/edit