From ef1767b82d2068edc3a0f2d329acedea04f74ff1 Mon Sep 17 00:00:00 2001 From: Tyler McGinnis Date: Thu, 21 May 2015 12:43:17 -0600 Subject: [PATCH] docs(ngModel): ng-model scope inheritance update ng-model will look to its current scope, then look to all its parent scopes before it implicitly creates a property on the current scope. The current docs don't talk about the parent lookup. http://jsfiddle.net/tylermcginnis/ma9a20kq/ --- src/ng/directive/ngModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/directive/ngModel.js b/src/ng/directive/ngModel.js index b9be7f2d734..b931c18f8b6 100644 --- a/src/ng/directive/ngModel.js +++ b/src/ng/directive/ngModel.js @@ -859,8 +859,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ * - Registering the control with its parent {@link ng.directive:form form}. * * Note: `ngModel` will try to bind to the property given by evaluating the expression on the - * current scope. If the property doesn't already exist on this scope, it will be created - * implicitly and added to the scope. + * current scope. If the property doesn't already exist on this scope, and if it doesn't exist on any of its parent scopes, it will be created + * implicitly and added to the current scope. * * For best practices on using `ngModel`, see: *