# Node Template

The TreeView enables you to customize the content of its nodes.

To customize the appearance of the nodes, use the [`NodeTemplate`](https://www.telerik.com/kendo-angular-ui-develop/components/treeview/api/nodetemplatedirective) directive. The available context variables are:

* `let-dataItem`—The data item that the node is bound to.
* `let-index="index"`—The index of the node in the current level.

The following example demonstrates how to display an icon beside the text of a TreeView node.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/treeview/item-template/source.txt)

## Suggested Links

* [Angular TreeView Homepage](https://www.telerik.com/kendo-angular-ui/treeview)
* [API Reference of the Angular TreeView](https://www.telerik.com/kendo-angular-ui-develop/components/treeview/api)
