0

I want to user directive inside ng-repeat of other directive with transclusion.

I am able to user multitransclude outside of ng-repeat, however I want <comment-popover> to be inside of <comment> directives ng-repeat region. Here is my code.

Note: I can not use <ng-transclude>, as my comment directive will be used by other part of the application, where i wont have popover child directive

Here is my code link: https://codepen.io/waghanil87/pen/PmORLL

Thanks in advance

1 Answer 1

1

Have you tried to define the transclusion that you want only in one section as optional?

transclude: {
  'mandatory': 'mandatory',
  'optional': '?optional'
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.