UNPKG

angular-ui-bootstrap-2.0

Version:

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/bootstrap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://secure.travis-ci.org/angular-ui/bootstrap.svg)](http://travis-

28 lines (25 loc) 645 B
angular.module('ui.bootstrap.demo').controller('PopoverDemoCtrl', function ($scope, $sce) { $scope.dynamicPopover = { content: 'Hello, World!', templateUrl: 'myPopoverTemplate.html', title: 'Title' }; $scope.placement = { options: [ 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'left-top', 'left-bottom', 'right', 'right-top', 'right-bottom' ], selected: 'top' }; $scope.htmlPopover = $sce.trustAsHtml('<b style="color: red">I can</b> have <div class="label label-success">HTML</div> content'); });