Angularjs Tyepahead搜索结果与验证放错了位置
我在AngularJS应用程序中使用基于jQuery验证的验证插件,该应用程序构建在jQuery库之上 当我使用ui引导Typeahead进行验证时,搜索结果放错了位置 普朗克: HTML help.HTMLAngularjs Tyepahead搜索结果与验证放错了位置,angularjs,angular-ui-bootstrap,angular-ui-typeahead,Angularjs,Angular Ui Bootstrap,Angular Ui Typeahead,我在AngularJS应用程序中使用基于jQuery验证的验证插件,该应用程序构建在jQuery库之上 当我使用ui引导Typeahead进行验证时,搜索结果放错了位置 普朗克: HTML help.HTML 你能简化那件事吗?我甚至不知道前面的打字机在哪里。请注意,ui引导处于测试阶段,每周都会有新的修复和新的bug…@Sulthan清理了这个漏洞。字体代码在HelpController中。 <div class="form-group"> <label fo
你能简化那件事吗?我甚至不知道前面的打字机在哪里。请注意,ui引导处于测试阶段,每周都会有新的修复和新的bug…@Sulthan清理了这个漏洞。字体代码在HelpController中。
<div class="form-group">
<label for="category">Category "{{formData.category}}"</label>
<input class="form-control" type="text" name="category" id="category" placeholder="Search..." ng-model="formData.category" typeahead="obj.name for obj in getCdOnCat($viewValue)" typeahead-editable="false" typeahead-loading="loadingLocations" required>
</div>
//Typeahead: Category Search
$scope.getCdOnCat = function (searchVal) {
return dataFactory.getCdOnCategory(searchVal).then(function (response) {
return response.data.categories;
}, function (error) {
console.log('Error: dataFactory.getCdOnCategory');
});
};
$scope.$watch('formData.category', function (value) {
if (value === "No matching categories") {
$scope.formData.category = "";
}
});