Created
January 11, 2017 12:31
-
-
Save Farmatique/de60865d676f25a05567a9dc09a44cf9 to your computer and use it in GitHub Desktop.
Popover using bootstrap with custom html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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