I need to add popover to a div. However, I need to add it dynamically.
<div popover="Please select from dropdown">foo foo foo</div>
I've tried ng-class but looks like it's not a class. I tried ng-attr-hidden but also didn't work.
You can just set the popover content in your controller and then apply it:
<div popover="{{dynamicPopover}}">Some text</div>
if dynamicPopover is empty, then there is no popover displayed
This is actually almost exactly the same example as they use in the docs (link)