2017-05-07 87 views
0

我想用戶指令內其他指令與transclusion的ng-repeatAngularJs Transclude與NG-重複和多transclude

我能夠在ng-repeat之外的用戶多重轉換,但是我想要<comment-popover><comment>指令ng-repeat區域之內。這是我的代碼。

注:我不能用<ng-transclude>,因爲我的評論指令將被應用,在那裏我不會有酥料餅的孩子指令

這裏的其他部分使用是我的代碼鏈接:https://codepen.io/waghanil87/pen/PmORLL

謝謝推進

回答

1

您試圖定義要在只有一個部分是可選的transclusion?

transclude: { 
    'mandatory': 'mandatory', 
    'optional': '?optional' 
}