Answer the question
In order to leave comments, you need to log in
How to display data correctly (angular)?
I output the data like this:
<ul class="regions-result">
<li class="result" ng-repeat="user in UserList | filter:mySearchFilter(userSearchQueryString)" ng-click="toggleUser(user)">
<a href="javascript:void(0)" ng-bind="user.name"></a>
</li>
</ul>
<input placeholder="Введите имя пользователя" ng-model="userSearchQueryString" uib-typeahead="name for name in names | filter:$viewValue:startsWith" typeahead-append-to-body="true" class="user-search-block__input form-control" id="user-search" autofocus AUTOCOMPLETE="off"/>
scope.mySearchFilter = function(searchText) {
if (searchText.length < 3) {
return ''
} else {
return searchText
}
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question