我们可以像select一样自动设置角度类型超前位置吗?如果元素位于屏幕底部,则结果应向上填充。请举一个这样的例子。
发布于 2016-06-24 01:24:30
查看html如何使用ng-model呈现双向绑定的工作原理。
codepen的链接说明了示例:https://codepen.io/deep060494/pen/ezBqay
<input name="states" id="states" type="text" placeholder="enter a state" ng-model="selected" typeahead="state for state in states | filter:$viewValue | limitTo:8" class="form-control">
</div>
<button class="btn btn-success" type="submit">Submit</button>
<div><span>{{selected}}</span></div>https://stackoverflow.com/questions/37996450
复制相似问题