How to make dynamically bound AngularJS models within nested ng-repeat not throw an error until the model is supplied data from somewhere else?
问题 The Problem jsFiddle Demonstrating the problem http://jsfiddle.net/7sfaB/ I have a situation I've run into in using AngularJS where I'm building a set of nested <ul> using ng-repeat with a nested ng-repeat from a config service that contains the structure of the lists. Within this nested ng-repeat , I am attempting to use a single complex model object by building the model dynamically based on properties within the config service and binding to an input field. (e.g. ng-model="data[category.id