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

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -