如何在AngularJS中有条件地用标签包围文本?例如:
function Controller($scope){
$scope.showLink = true or false, retrieved from server;
$scope.text = "hello";
$scope.link = "..."
}
如果 {{showLink}} 为假
<div>hello</div>
别的
<div><a href="{{link}}">hello</a></div>