diff --git a/src/popover/popover.js b/src/popover/popover.js index 2bea0a3e10..c177e61959 100644 --- a/src/popover/popover.js +++ b/src/popover/popover.js @@ -16,4 +16,17 @@ angular.module( 'ui.bootstrap.popover', [ 'ui.bootstrap.tooltip' ] ) .directive( 'popover', [ '$tooltip', function ( $tooltip ) { return $tooltip( 'popover', 'popover', 'click' ); -}]); +}]) + +.directive( 'popoverHtmlUnsafePopup', function () { + return { + restrict: 'EA', + replace: true, + scope: { title: '@', content: '@', placement: '@', animation: '&', isOpen: '&' }, + templateUrl: 'template/popover/popover-html-unsafe-popup.html' + }; +}) + +.directive( 'popoverHtmlUnsafe', [ '$tooltip', function ( $tooltip ) { + return $tooltip( 'popoverHtmlUnsafe', 'popover', 'mouseenter' ); +}]); \ No newline at end of file diff --git a/template/popover/popover-html-unsafe-popup.html b/template/popover/popover-html-unsafe-popup.html new file mode 100644 index 0000000000..64ea9dea75 --- /dev/null +++ b/template/popover/popover-html-unsafe-popup.html @@ -0,0 +1,8 @@ +
+
+ +
+

+
+
+