These are chat archives for angular-ui/ui-select

26th
Jan 2016
JonasHans91
@JonasHans91
Jan 26 2016 14:06
Hi Guys
I got the following questions:
  1. I want to save my selected object in a scope variable and i can´t get it work.
  2. After I selected one Item, my "searching box" no longer works.
    Thanks for help
    <ui-select ng-model="selected" theme="selectize" ng-disabled="disabled" style="width: 300px;"> <ui-select-match placeholder="Select or search a {{type}}">{{$select.selected.name}}</ui-select-match> <ui-select-choices repeat="item in selectBoxItems | filter: $select.search" value="{{$select.selected}}"> <span ng-bind-html="item.name | highlight: $select.search"></span> </ui-select-choices> </ui-select>
`<ui-select ng-model="selected" theme="selectize" ng-disabled="disabled" style="width: 300px;">

<ui-select-match placeholder="Select or search a {{type}}">{{$select.selected.name}}</ui-select-match>

<ui-select-choices repeat="item in selectBoxItems | filter: $select.search" value="{{$select.selected}}">

<span ng-bind-html="item.name | highlight: $select.search"></span>

</ui-select-choices>

</ui-select>`

SORRY FOR THAT BAD STYLE !!!