M
M
Maxim Dunayevsky2015-08-24 14:23:44
Angular
Maxim Dunayevsky, 2015-08-24 14:23:44

How to write directive for TreeView?

Hello!
I can't write a directive that would build a tree. Make a template and a controller that can program at least - no problem .
When I take out all this business in the directive, problems begin, as a rule with an error of plural ng-include. There are many questions, I have already rummaged through a lot of literature, in addition to these articles and the like (for example, where and what I was looking for):

  • habrahabr.ru/post/250637
  • habrahabr.ru/post/179755
  • habrahabr.ru/post/200620

I would be grateful for information on how to correctly issue a directive that implements the same functionality that is now in the foam. In the future, I plan to add the ability to select elements using the checkbox and load them via AJAX (now even without delay emulation).
Please do not offer ready-made solutions like this , this and this - in my application only Angular Material is used to create the user interface.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-08-27
Protko @Fesor

take any ready-made directive as a basis and implement your styles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question