Skip to content

Commit d6e0d30

Browse files
patouuser378230
authored andcommitted
docs(tagging): Fix tagging demo page
Closes angular-ui#1670
1 parent 668a0f3 commit d6e0d30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/examples/demo-tagging.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ <h1>Tagging</h1>
77
<p>Tagging allows the creation of new items not present in the item list</p>
88

99
<h3>Simple String Tags <small>(With Custom Tag Label &amp; Sort Enabled)</small></h3>
10-
10+
1111
<ui-select multiple tagging tagging-label="(custom 'new' label)" ng-model="ctrl.multipleDemo.colors" theme="bootstrap" sortable="true" ng-disabled="ctrl.disabled" style="width: 300px;" title="Choose a color">
1212
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
13-
<ui-select-choices repeat="color in availableColors | filter:$select.search">
13+
<ui-select-choices repeat="color in ctrl.availableColors | filter:$select.search">
1414
{{color}}
1515
</ui-select-choices>
1616
</ui-select>
1717
<p>Selected: {{ctrl.multipleDemo.colors}}</p>
1818
<hr>
1919

2020
<h3>Simple String Tags <small>(Predictive Search Model &amp; No Labels)</small></h3>
21-
21+
2222
<ui-select multiple tagging tagging-label="false" ng-model="ctrl.multipleDemo.colors2" theme="bootstrap" ng-disabled="ctrl.disabled" style="width: 300px;" title="Choose a color">
2323
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
24-
<ui-select-choices repeat="color in availableColors | filter:$select.search">
24+
<ui-select-choices repeat="color in ctrl.availableColors | filter:$select.search">
2525
{{color}}
2626
</ui-select-choices>
2727
</ui-select>
@@ -78,7 +78,7 @@ <h3>Tagging in Single Select mode</h3>
7878
<h3>Tagging in Single select mode, with simple strings</h3>
7979
<ui-select tagging tagging-label="('new')" ng-model="ctrl.singleDemo.color" theme="bootstrap" style="width: 800px;" title="Choose a color">
8080
<ui-select-match placeholder="Select color...">{{$select.selected}}</ui-select-match>
81-
<ui-select-choices repeat="color in availableColors | filter: $select.search">
81+
<ui-select-choices repeat="color in ctrl.availableColors | filter: $select.search">
8282
<div ng-bind-html="color | highlight: $select.search"></div>
8383
</ui-select-choices>
8484
</ui-select>

0 commit comments

Comments
 (0)