aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/inputSpec.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/inputSpec.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/inputSpec.js')
-rw-r--r--test/directive/inputSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/directive/inputSpec.js b/test/directive/inputSpec.js
index 8d0e44b3..e5f083b3 100644
--- a/test/directive/inputSpec.js
+++ b/test/directive/inputSpec.js
@@ -941,8 +941,8 @@ describe('input', function() {
describe('required', function() {
- it('should allow bindings on required', function() {
- compileInput('<input type="text" ng-model="value" required="{{required}}" />');
+ it('should allow bindings on ng-required', function() {
+ compileInput('<input type="text" ng-model="value" ng-required="required" />');
scope.$apply(function() {
scope.required = false;