有人可以帮助我解决我的链接元素的标题问题,我试图绑定json文件中的数据并使用ng-repeat向工具提示添加一些信息但是当我悬停链接时它没有显示工具提示工具提示,但是使用class =“工具提示在ng范围内进行隐藏”,另一个链接元素具有绑定循环的相同数据,显示工具提示。
以下是代码:
//this is the directive
var testDirective = function(){
return{
restrict:'AE',
template: '\
<div class="col-md-12" ng-repeat="plan in product.includedplan" >\
<div>\
<a href="#" bs-tooltip="tooltip" title="" title="{{plan.featureDes}}" data-placement="right" class="included_Features">{{plan.featureName}}</a>\
</div>\
</div>',
controller:'testCtrl'
};
}
//this line is working
<a href="#" bs-tooltip="tooltip" data-placement="right" class="included_Features" title="Include:{{product.plan}}">{{product.plan}}</a>
//this line is not
<div test-directive> </div>