1802 placement: 'right',
1803 trigger: 'click',
1804 content: '',
1805 template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'1806 })
1807
1808
1290 animation: true,
1291 placement: 'top',
1292 selector: false,
1293 template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',1294 trigger: 'hover focus',
1295 title: '',
1296 delay: 0,
1197 $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
1198 placement: 'right'
1199 , content: ''
1200 , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'1201 })
1202
1203}( window.jQuery );/* =============================================================
1103 , placement: 'top'
1104 , trigger: 'hover'
1105 , title: ''
1106 , template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'1107 }
1108
1109}( window.jQuery );/* ===========================================================
Prefer using HTML templates as an external file over inline templates. It is simpler, modular, and more readable.
angular
.module('myModule')
.directive('helloWorld', function () {
return {
template: '<div>Hello World! <button>Say hello!</button></div>'
};
});
angular
.module('myModule')
.directive('helloWorld', function () {
return {
templateUrl: 'template/helloWorld.html'
};
});