Pass parameter to Angular ng-include

前端 未结 4 2111
南笙
南笙 2020-12-29 01:26

I am trying to display a binary tree of elements, which I go through recursively with ng-include.

What is the difference between ng-init=\"item = item.left\"

4条回答
  •  甜味超标
    2020-12-29 01:46

    Making a generic directive instead of ng-include is a cleaner solution: Angular passing scope to ng-include

提交回复
热议问题