Search code examples
angularjsangularjs-directivepopoverangular-ui-bootstrap

How do I display an angular directive within a angular-bootstrap popover?


I have an angularJS directive which I want to show as a popover using Angular Bootstrap Popover When I try it, the popover just shows the directive tag. (Plunk: http://plnkr.co/edit/GCY8sMMPKKLa8jZ6GrwL?p=preview) Any pointers are greatly appreciated!!


Solution

  • You cannot have directives inside HTML attributes. I suggest that you create a directive that passes the popover specific attributes to your target element.