Answer the question
In order to leave comments, you need to log in
How to add elements to html through scope ?
Hello!
How to select an element from autocomplete and add it to html?
Here is where I add
<div id="selectedEditors">
<div class="selected_user" ng-repeat="editor in selectedCategory.editors">
<span class="user">{{editor.label}}</span>
<span class="delete_chosen glyphicon glyphicon-remove" ng-click="deleteEditor($index)" title="Удалить"></span>
</div>
</div>
$scope.selectedEditor = function(user)
{
console.log(user);
}
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