I have a multi selection demo here.
http://plnkr.co/edit/CVaMvt4zBUBD2QEsfIdk?p=preview
Currently I am able to select which person object, but unable to create the person object.
Is there a good way with good UI to accept user input for the object? I dont want to manually create 3 input fields (name, email and age) and ok button to insert it, since it's tedious and does not look good together with the ui-select
<h3>Array of objects</h3>
<ui-select multiple tagging tagging-label="new tag" ng-model="multipleDemo.selectedPeople" theme="select2" ng-disabled="disabled" style="width: 800px;">
<ui-select-match placeholder="Select person...">{{$item.name}} <{{$item.email}}></ui-select-match>
<ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
<div ng-bind-html="person.name | highlight: $select.search"></div>
<small>
email: {{person.email}}
age: <span ng-bind-html="''+person.age | highlight: $select.search"></span>
</small>
</ui-select-choices>
</ui-select>
<p>Selected: {{multipleDemo.selectedPeople}}</p>
ng-includeto add that template