From 7be1f64d85cbce9cbb1a1ffc450ef7e8a50761b1 Mon Sep 17 00:00:00 2001 From: Stephen Kraushaar Date: Wed, 18 Nov 2015 12:41:33 -0600 Subject: [PATCH] docs(ngModel.NgModelController): Example inputs behave the same when they shouldn't. The first input demonstrating $rollbackViewValue is meant to rollback the value, not make it blank. Code in it's current state makes both behave the same. --- src/ng/directive/ngModel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ng/directive/ngModel.js b/src/ng/directive/ngModel.js index b7951acc8210..98d56ba9fd86 100644 --- a/src/ng/directive/ngModel.js +++ b/src/ng/directive/ngModel.js @@ -455,7 +455,6 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ * $scope.resetWithCancel = function(e) { * if (e.keyCode == 27) { * $scope.myForm.myInput1.$rollbackViewValue(); - * $scope.myValue = ''; * } * }; * $scope.resetWithoutCancel = function(e) {