@@ -194,8 +194,9 @@ in which the properties were defined.
194
194
195
195
Due to [7fda214c](https://github.com/angular/angular.js/commit/7fda214c4f65a6a06b25cf5d5aff013a364e9cef),
196
196
the `select` directive will now use strict comparison of the `ngModel` scope value against `option`
197
- values to determine which option is selected. This means `Number` scope values will not be matched
198
- against numeric option strings.
197
+ values to determine which option is selected. This means non-string scope values (such as `Number` or `Boolean`)
198
+ will not be matched against equivalent option strings (such as the strings `"123"`, `"true"` or `"false"`).
199
+
199
200
In Angular 1.3.x, setting `scope.x = 200` would select the option with the value 200 in the following `select`:
200
201
201
202
```
@@ -206,7 +207,8 @@ In Angular 1.3.x, setting `scope.x = 200` would select the option with the value
206
207
```
207
208
208
209
In Angular 1.4.x, the 'unknown option' will be selected.
209
- To remedy this, you can simply initialize the model as a string: `scope.x = '200'`, or if you want to
210
+
211
+ To remedy this, you can initialize the model as a string: `scope.x = '200'`, or if you want to
210
212
keep the model as a `Number`, you can do the conversion via `$formatters` and `$parsers` on `ngModel`:
211
213
212
214
```js
@@ -248,7 +250,7 @@ is marked as optional and the attribute is not specified, no function will be ad
248
250
249
251
Due to [62d514b](https://github.com/angular/angular.js/commit/62d514b06937cc7dd86e973ea11165c88343b42d),
250
252
returning an object from a controller constructor function will now override the scope. Views that use the
251
- controllerAs method will no longer get the this reference, but the returned object.
253
+ controllerAs method will no longer get the this reference, but the returned object.
252
254
253
255
254
256
## Cookies (`ngCookies`)
0 commit comments