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

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -