0

I have a tooltip that takes raw javascript, for example I have this $scope var:

  $scope.dynamicPopoverContent = "Hello, <b>World!</b>";

that I can display by passing it to the popover directive like so:

popover="{{dynamicPopoverContent}}"

I cannot readily use templates because I am using an old version of angular-bootstrap. I want to use ng-repeat inside $scope.dynamicPopoverContent - can I use $compilehere somehow to compile html with angular directives into compiled html, or is that just for the link function on directives?

PLNK

Edit: ...and if I could use directives inside that html....

2
  • Older angular bootstrap didn't support html for content Commented Jun 8, 2016 at 23:28
  • Someone hacked it to do so. See first answer here: stackoverflow.com/questions/16722424/… or see the plunk in the question. That said, I am probably just going to build the html by hand in javascript...fun. Commented Jun 8, 2016 at 23:39

0

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.