I have two text inputs, one in root scope, and the other in a controller's scope,
<input type="text" ng-model="message">
When I give "q" in the first input, there is a property "message" created in the root scope. When I give "a" in the second input, there is a property "message" created in the controller's scope.
Now I introduce an object in the scopes,
<input type="text" ng-model="data.message">
When I give "q" in the first input, there is a property "data" created in the root scope. When I give "a" in the second input, there is NOT a property "data" created in the controller's scope.
Why is this?
Thanks,
Eric J.