angularjs - Is this an acceptable process in Angular-JS -
ng-model="$parent.$parent.$parent.something"
is there better way write this? inside serval ng-repeats.
unless have isolated scopes, should able reference something
property directly. scopes inherit parent properties.
ng-model="something"
edit: there gotchas around this. take @ https://github.com/angular/angular.js/wiki/understanding-scopes
Comments
Post a Comment