Skip to content

Instantly share code, notes, and snippets.

@Farmatique
Created January 11, 2017 12:31
Show Gist options
  • Save Farmatique/de60865d676f25a05567a9dc09a44cf9 to your computer and use it in GitHub Desktop.
Save Farmatique/de60865d676f25a05567a9dc09a44cf9 to your computer and use it in GitHub Desktop.
Popover using bootstrap with custom html
<div id="myPopoverContent">
Custom html here
</div>
<a ng-href="" data-toggle="popover" data-placement="bottom" id="test"><span class="badge"></span>Click Here</a>
$('[data-toggle=popover]').popover({
content: $('#myPopoverContent').html(),
html: true
}).click(function() {
$(this).popover('show');
});
#myPopoverContent {display: none;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment