Recursion in Angular directives

前端 未结 9 1523
不思量自难忘°
不思量自难忘° 2020-11-22 04:24

There are a couple of popular recursive angular directive Q&A\'s out there, which all come down to one of the following solutions:

  • manually incrementally \
9条回答
  •  一生所求
    2020-11-22 04:54

    You can use angular-recursion-injector for that: https://github.com/knyga/angular-recursion-injector

    Allows you to do unlimited depth nesting with conditioning. Does recompilation only if needed and compiles only right elements. No magic in code.

    {{name}}

    One of the things that allows it to work faster and simpler then the other solutions is "--recursion" suffix.

提交回复
热议问题