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

6th
Aug 2015
Karthik
@karthikpamidimarri
Aug 06 2015 14:54

Hi guys, I stuck with issue while using angular-ui/ui-select , the problem which I am facing is by applying theme SELECT2 search is not working but with default theme bootstrap it's working fine
<ui-select ng-model="user.country" id="country" name="country" theme="select2">
<ui-select-match placeholder="{{'Select' | translate}}">{{$select.selected.name}}
</ui-select-match>
<ui-select-choices repeat="country in countries | searchFilter:{name:$select.search}" >
<div ng-bind-html="country.name |highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
please let me know what I am missing , I followed this Link http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview

Note: Before We used to work with Jquery and Select2.js so we want to replace that

Karthik
@karthikpamidimarri
Aug 06 2015 15:19
Hi guys using country code I want to display country flag codes too how could it possible to display country flags using codes with jquery select2 component as css flags are coming ".select2-container.currency .select2-choice > .select2-chosen .flag {
margin-right: 0.5em;
position: relative;
top: -6px;
display: inline-block;
}"