Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 161a61f

Browse files
author
Brian Feister
committed
Fix failed model binding in newest tagging demo via #671
1 parent 30b00af commit 161a61f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/demo-tagging.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ <h3>Tagging without multiple</h3>
131131
<p>Selected: {{person.selected}}</p>
132132

133133
<h3>Tagging without multiple, with simple strings</h3>
134-
<ui-select tagging="true" tagging-label="('new')" ng-cloak ng-model="color.selected" theme="bootstrap" style="width: 800px;" title="Choose a color">
134+
<ui-select tagging tagging-label="('new')" ng-model="singleDemo.color" theme="bootstrap" style="width: 800px;" title="Choose a color">
135135
<ui-select-match placeholder="Select color...">{{$select.selected}}</ui-select-match>
136136
<ui-select-choices repeat="color in availableColors | filter: $select.search">
137137
<div ng-bind-html="color | highlight: $select.search"></div>
138138
</ui-select-choices>
139139
</ui-select>
140-
<p>Selected: {{color.selected}}</p>
140+
<p>Selected: {{singleDemo.color}}</p>
141141

142142

143143
<div style="height:500px"></div>

examples/demo.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ app.controller('DemoCtrl', function($scope, $http, $timeout) {
133133

134134
$scope.availableColors = ['Red','Green','Blue','Yellow','Magenta','Maroon','Umbra','Turquoise'];
135135

136+
$scope.singleDemo = {};
137+
$scope.singleDemo.color = '';
136138
$scope.multipleDemo = {};
137139
$scope.multipleDemo.colors = ['Blue','Red'];
138140
$scope.multipleDemo.colors2 = ['Blue','Red'];

0 commit comments

Comments
 (0)