Access directive's isolate scope from within transcluded content

后端 未结 3 1784
太阳男子
太阳男子 2021-02-13 02:35

I\'m not sure if this is actually possible, but I\'m essentially wanting a reverse of the \'&\' isolate scope in AngularJS. Here is a Plunkr to demonstrate.

Basicall

3条回答
  •  爱一瞬间的悲伤
    2021-02-13 03:08

    It is my understanding that adding ng-repeat to an element creates a new scope, in order for the repeating content to be correctly bound. You may need an additional $parent in that chain, such as $parent.$$nextSibling, in order to step up to the level that is adjacent to the directive's isolate scope.

提交回复
热议问题