Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create TreeView in Angular 2 using Typescript?

What should I do to create TreeView in Angular 2 using TypesScript?

I am trying to find out on Google but still not get any working example etc.

Can anyone please share me example to achieve this task?

like image 586
Anil Singh Avatar asked Sep 22 '16 12:09

Anil Singh


2 Answers

Why not use a ready made one, for example angular2-tree-component?

npm install angular2-tree-component

like image 156
Alexander Ciesielski Avatar answered Oct 23 '22 15:10

Alexander Ciesielski


You can check this article.

It will help you to create a tree structure without a third party library. It works recursively and it has collapsible logic.

like image 41
NicuVlad Avatar answered Oct 23 '22 14:10

NicuVlad