Questions tagged «bootstrap-typeahead»

4
在selectMatch上的角度ui-bootstrap提前输入回调?
我正在使用有角度的ui-bootstrap typeahead,并且希望将其用作选择许多选项的方法,因此启动selectMatch方法时需要获取选定的值,但我找不到方法在我的控制器中 <div class='container-fluid' ng-controller="TypeaheadCtrl"> <pre>Model: {{selected| json}}</pre> <input type="text" ng-model="selected" typeahead="state for state in states | filter:$viewValue"> 如果我观看选定的值,则每次按一下键都会得到更改。 scope.$watch('selected', function(newValue, oldValue) {... }); 我知道方法selectMatch是在用户按Enter或单击列表时调用的方法,但是我不知道该如何回调。 谢谢 !
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.