diff --git a/examples/demo-bind-to-single-property-async.html b/examples/demo-bind-to-single-property-async.html index 1253a43bf..f57d93188 100644 --- a/examples/demo-bind-to-single-property-async.html +++ b/examples/demo-bind-to-single-property-async.html @@ -65,7 +65,7 @@

Select2 theme

Single property binding with async data

Selected: {{personAsync.selected}}

- + {{$select.selected.name || $select.selected}}
diff --git a/examples/demo-bind-to-single-property.html b/examples/demo-bind-to-single-property.html index 13d71492a..9da6b4ef7 100644 --- a/examples/demo-bind-to-single-property.html +++ b/examples/demo-bind-to-single-property.html @@ -64,7 +64,7 @@

Select2 theme

Selected: {{person.selected}}

- + {{$select.selected.name}}
diff --git a/examples/demo-disable-search.html b/examples/demo-disable-search.html index 2b92d02b3..43d48a96c 100644 --- a/examples/demo-disable-search.html +++ b/examples/demo-disable-search.html @@ -65,7 +65,7 @@

Bootstrap theme

Selected: {{person.selected}}

- + {{$select.selected.name}}
diff --git a/examples/demo-event-on-select.html b/examples/demo-event-on-select.html index d7de9c6eb..491048730 100644 --- a/examples/demo-event-on-select.html +++ b/examples/demo-event-on-select.html @@ -64,7 +64,7 @@

Select2 theme

Selected: {{person.selected}}

- + {{$select.selected.name}}
@@ -79,7 +79,7 @@

Select2 theme



Event Result

- Called {{counter+0}} times selected + Called {{counter+0}} times selected
item = {{eventResult.item}}
model = {{eventResult.model}}
diff --git a/examples/demo-groupby.html b/examples/demo-groupby.html index ae1416046..fe540ea90 100644 --- a/examples/demo-groupby.html +++ b/examples/demo-groupby.html @@ -66,7 +66,7 @@

Select2 theme

Selected: {{person.selected}}

Grouped using a string (group-by="'country'")

- + {{$select.selected.name}}
@@ -78,7 +78,7 @@

Grouped using a string (group-by="'country'")

Grouped using a function (group-by="someGroupFn")

- + {{$select.selected.name}}
@@ -90,7 +90,7 @@

Grouped using a function (group-by="someGroupFn")

Simple (no groupBy)

- + {{$select.selected.name}}
diff --git a/examples/demo-multi-select.html b/examples/demo-multi-select.html index 81e495ac7..4246aa988 100644 --- a/examples/demo-multi-select.html +++ b/examples/demo-multi-select.html @@ -113,7 +113,7 @@

Multi select

Multi Selection Demos

Array of strings

- + {{$item}} {{color}} @@ -136,7 +136,7 @@

Array of objects


Deselect callback with single property binding

- + {{$item.name}} <{{$item.email}}>
@@ -151,7 +151,7 @@

Deselect callback with single property binding


Array of objects with single property binding

- + {{$item.name}} <{{$item.email}}>
@@ -165,7 +165,7 @@

Array of objects with single property binding


Array of objects (with groupBy)

- + {{$item.name}} <{{$item.email}}>
diff --git a/examples/demo-tagging.html b/examples/demo-tagging.html index 9ad7749f3..b2cc6cf7a 100644 --- a/examples/demo-tagging.html +++ b/examples/demo-tagging.html @@ -66,7 +66,7 @@

Tagging Demos

Simple String Tags

(With Custom Tag Label)

- + {{$item}} {{color}} @@ -77,7 +77,7 @@

(With Custom Tag Label)

Simple String Tags

(Predictive Search Model / No Labels)

- + {{$item}} {{color}} @@ -87,7 +87,7 @@

(Predictive Search Model / No Labels)


Object Tags

- + {{$item.name}} <{{$item.email}}>
@@ -103,7 +103,7 @@

Object Tags

Object Tags with Tokenization (Space, Forward Slash, Comma)

Note that the SPACE character can't be used literally, use the keyword SPACE - + {{$item.name}} <{{$item.email}}>
diff --git a/examples/demo.html b/examples/demo.html index dad80fc06..3c5fbc66e 100644 --- a/examples/demo.html +++ b/examples/demo.html @@ -68,7 +68,8 @@

Bootstrap theme

theme="bootstrap" ng-disabled="disabled" reset-search-input="false" - style="width: 300px;"> + style="width: 300px;" + title="Choose an address"> {{$select.selected.formatted_address}} Bootstrap theme

Select2 theme

Selected: {{person.selected}}

- + {{$select.selected.name}}
@@ -92,7 +93,7 @@

Select2 theme

Selectize theme

Selected: {{country.selected}}

- + {{$select.selected.name}} diff --git a/examples/select2-bootstrap3.html b/examples/select2-bootstrap3.html index 85dfc07ba..4febfa396 100644 --- a/examples/select2-bootstrap3.html +++ b/examples/select2-bootstrap3.html @@ -53,7 +53,7 @@
- + {{$select.selected.name}}
@@ -68,7 +68,7 @@
- + {{$select.selected.name}} @@ -84,7 +84,7 @@
- + {{$select.selected.name}} @@ -106,7 +106,7 @@
- + {{$select.selected.name}}
diff --git a/examples/selectize-bootstrap3.html b/examples/selectize-bootstrap3.html index a14d4cff8..1dd60479d 100644 --- a/examples/selectize-bootstrap3.html +++ b/examples/selectize-bootstrap3.html @@ -68,7 +68,7 @@
- + {{$select.selected.name}}
@@ -83,7 +83,7 @@
- + {{$select.selected.name}} @@ -121,7 +121,7 @@
- + {{$select.selected.name}}
diff --git a/src/bootstrap/choices.tpl.html b/src/bootstrap/choices.tpl.html index a9a1eee3a..3fc967333 100644 --- a/src/bootstrap/choices.tpl.html +++ b/src/bootstrap/choices.tpl.html @@ -1,10 +1,11 @@
diff --git a/src/bootstrap/select.tpl.html b/src/bootstrap/select.tpl.html index 7ba6bd3d2..880396a38 100644 --- a/src/bootstrap/select.tpl.html +++ b/src/bootstrap/select.tpl.html @@ -1,6 +1,10 @@