What is ng-transclude?

后端 未结 3 2043
情书的邮戳
情书的邮戳 2020-12-02 04:07

I have seen a number of questions on StackOverflow discussing ng-transclude, but none explaining in layman\'s terms what it is.

The description in the documentation

3条回答
  •  猫巷女王i
    2020-12-02 04:21

    it's a kind of yield, everything from the element.html() gets rendered there but the directive attributes still visible in the certain scope.

提交回复
热议问题