Anil Singh
Anil Singh

Reputation: 4212

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?

Upvotes: 7

Views: 20188

Answers (2)

NicuVlad
NicuVlad

Reputation: 2601

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.

Upvotes: 2

Alexander Ciesielski
Alexander Ciesielski

Reputation: 10824

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

npm install angular2-tree-component

Upvotes: 9

Related Questions