From 96fca8ad62019567150a0d576017d3592c4cee3c Mon Sep 17 00:00:00 2001 From: Mathis Hofer Date: Tue, 12 Nov 2013 11:23:36 +0100 Subject: [PATCH] docs(NgModelController): clearify documentation of $setViewValue The current description of NgModelController.$setViewValue is very confusing for a setter: "Read a value from view". -- change this in an attempt to make it clearer. --- src/ng/directive/input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index da8825e34063..bcd7b5d1559c 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -1103,9 +1103,9 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ * @methodOf ng.directive:ngModel.NgModelController * * @description - * Read a value from view. + * Update the view value. * - * This method should be called from within a DOM event handler. + * This method should be called when the view value changes, typically from within a DOM event handler. * For example {@link ng.directive:input input} or * {@link ng.directive:select select} directives call it. *