-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ngModel: Don't bind to the $scope directly #1
Comments
It's because of this issue: https://egghead.io/lessons/angularjs-the-dot |
It's because of variable "hiding" that happens when setting a variable on child scopes. Sent from my iPhone
|
Thank you @brockallen, @spmorgan. Egghead tutorial is interesting. Also noticed, if I define If I define function FirstCtrl($scope) { function SecondCtrl($scope) { I believe this difference is pointed out at the end of video. I am wondering how I'll access the model in controller, if not using |
One slide states
Always bind to a property of a child object
. I assume it's applicable only forobjects
defined on scope, notarrays
orproperties
.The text was updated successfully, but these errors were encountered: