【发布时间】:2015-12-29 03:30:49
【问题描述】:
我已经为 jquery 工具提示创建了一个角度指令。
angular.module("app", []).directive("tooltip", function(){
return {
restrict: "A",
scope:{
title: "@",
template: "@"
},
link: function(scope, element){
$(element).tooltip({
title: scope.title,
tooltipClass: scope.template
});
}
}
})
Demo-1 is here 正在工作。(尚未引用 bootstrap.js)
但是如果我在我的项目中使用 bootstrap.js,它就不起作用了。
Demo-2 is here 并且不工作。 (我引用了 bootstrap.js)
【问题讨论】:
-
jsFiddle...看来Shashank的回答是正确的
标签: javascript jquery css angularjs twitter-bootstrap