我是angularjs的新手,正在尝试使用bootstrap-ui工具提示。我必须显示将鼠标悬停在代码上的描述。但工具提示不会显示实际数据。
我想念什么?
<a href="#" class="aCustom" e-style="width:100px" title="{{item.Description}}" data-toggle="tooltip">
{{item.Code}}
</a>
您的html代码对我有用。您是否在范围内设置了变量?
test.controller('testCtrl', ["$scope", function ( $scope) {
$scope.item= { "Description" : 'the super description', "Code" : "1234" };
}]);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句