Javascript 引导式打字机不工作

Javascript 引导式打字机不工作,javascript,jquery,angularjs,twitter-bootstrap,Javascript,Jquery,Angularjs,Twitter Bootstrap,在下面的代码中,我将使用Bootstrap typeahead来填充country。我正在jQuery中初始化typeahead,但文本框中没有值。如果我去掉ng,重复一下,效果会很好 <div ng-repeat='item in array'> <input class="typeahead" type="text" id="Text23" ng-model="dtl.InstCn" ng-required="true" placeholder="Country"&

在下面的代码中,我将使用Bootstrap typeahead来填充country。我正在jQuery中初始化typeahead,但文本框中没有值。如果我去掉ng,重复一下,效果会很好

<div ng-repeat='item in array'>
    <input class="typeahead" type="text" id="Text23" ng-model="dtl.InstCn" ng-required="true" placeholder="Country">
</div>
<script>
    $('.typeahead').typeahead({source: sourceArr});
</script>

$('.typeahead').typeahead({source:sourceArr});

如何使用带有ng repeat的打印头?

您能提供一个打印头吗?我无法理解代码片段中重复ng的含义。您没有使用ng repeat中的任何内容

否则,请使用AngularUI中的UI引导(用纯AngularJS编写的引导组件)尝试此操作:

您是否使用bootstrap 3版本?