【发布时间】:2016-01-26 22:20:13
【问题描述】:
<div class="form-group" ng-if="firstname">
<label>First Name</label>
<input readonly type="text" class="form-control" id="first_name" ng-model="firstname" placeholder="First Name">
<a href="" data-toggle="popover" data-placement="bottom" data-trigger="focus" data-content="User Name" class="glyphicon glyphicon-info-sign infottp"></a>
</div>
我正在使用上面的代码。从那我通过单击-info-sign glyphicon显示一个弹出窗口,我使用ng-if条件进行显示/隐藏而不是ng-show和ng-hide。我的问题是当我使用ng-if时,弹出窗口不起作用.但是popover在ng-hide条件下工作,如果我删除ng-if条件。我的问题是为什么popover不能在ng-if条件下工作。
【问题讨论】:
标签: html angularjs twitter-bootstrap-3 popover