1

It makes a network request for it in my code but not here despite my mark-up being the same.

 <input typeahead="state for state in states | filter:$viewValue | limitTo:8" type="text" ng-model="state" />
4

1 回答 1

2

预输入需要一个模板来显示输入内容的可能解决方案。在您的 plunker 中,该//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.4.0.js文件包含将这些模板加载到 angular$templateCache变量中的模块。

于 2013-09-07T20:06:59.923 回答