Angularjs工具提示显示数据

时间:2015-04-03 06:35:10

标签: angularjs twitter-bootstrap

我是angularjs的新手,并尝试使用bootstrap-ui工具提示。 我必须在代码上显示悬停的描述。但工具提示不显示实际数据。

我错过了什么?

<a href="#" class="aCustom" e-style="width:100px" title="{{item.Description}}" data-toggle="tooltip">
{{item.Code}}
  </a>

1 个答案:

答案 0 :(得分:0)

你的HTML代码对我有用。你在范围内设置了变量吗?

 test.controller('testCtrl', ["$scope",  function ( $scope) {         
     $scope.item= { "Description" : 'the super description', "Code" : "1234"     };
 }]);