aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/selectSpec.js
diff options
context:
space:
mode:
authorVojta Jina2012-03-23 15:53:04 -0700
committerVojta Jina2012-03-26 21:14:09 -0700
commita08cbc02e78e789a66e9af771c410e8ad1646e25 (patch)
treebc7081b11d6d1ed4cd5bde3a9e059e5c964e75a8 /test/directive/selectSpec.js
parent55027132f3d57e5dcf94683e6e6bd7b0aae0087d (diff)
downloadangular.js-a08cbc02e78e789a66e9af771c410e8ad1646e25.tar.bz2
feat($compile): do not interpolate boolean attributes, rather evaluate them
So that we can have non string values, e.g. ng-value="true" for radio inputs Breaks boolean attrs are evaluated rather than interpolated To migrate your code, change: <input ng-disabled="{{someBooleanVariable}}"> to: <input ng-disabled="someBooleanVariabla"> Affected directives: * ng-multiple * ng-selected * ng-checked * ng-disabled * ng-readonly * ng-required
Diffstat (limited to 'test/directive/selectSpec.js')
-rw-r--r--test/directive/selectSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/directive/selectSpec.js b/test/directive/selectSpec.js
index 3f8fb56e..2e3cfaaf 100644
--- a/test/directive/selectSpec.js
+++ b/test/directive/selectSpec.js
@@ -780,7 +780,7 @@ describe('select', function() {
createSelect({
'ng-model': 'value',
'ng-options': 'item.name for item in values',
- 'ng-required': '{{required}}'
+ 'ng-required': 'required'
}, true);