2017-03-17 17 views
0

我這一小段代碼在我的html頁面打開角度酥料餅,當我專注於輸入文本

<div class="input-group"> 
    <input type="text" class="form-control" name="telefono" id="field_telefono" ng-model="vm.indirizzo.telefono" telefono required/> 
    <span class="input-group-addon" role="button" uib-popover="{{'theFoodApp.indirizzo.informativa' | translate}}" data-popover-title="{{'theFoodApp.indirizzo.informativa-title' | translate}}" data-popover-placement="top" data-popover-append-to-body="true"> 
    <span class="glyphicon glyphicon-question-sign white"></span> 
    </span> 
</div> 

是不可能性打開UIB-酥料餅,當我專注於輸入文本?

回答

0
popover-trigger="'focus'" 

您還可以使用ng-focus和ng-blur指令觸發傳遞給popover-is-open =「」的切換變量。

+0

它不起作用。你可以用jsfiddle做一個例子嗎? – Dennis