A
A
Abc Edc2015-07-28 10:46:44
JavaScript
Abc Edc, 2015-07-28 10:46:44

Are there any out-of-the-box dropdown implementations in angular?

It is necessary that the list itself searches for nesting and displays them up to n in the template. That is superNested ng ripit. Are there ready-made solutions or invent a directive yourself

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kononenko, 2015-07-28
@gleber1

I beg you, what to invent that. Trivial recursive structure, tune it yourself

div ng-include="children_renderer.html"

script type="text/ng-template" id="children_renderer.html"
  ul
    li ng-repeat="node in node.children"
      i ng-click="node.isHide=!node.isHide" ▼
      span
        | {{node.title}}
      div ng-include="'children_renderer.html'"  ng-hide="node.isHide"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question