Exploring the possibility of utilizing Angular's method for nesting properties deeply, similar to how the ng-model
directive accomplishes it. For example, in a view we can create a very complex object within a scope by specifying:
ng-model="data.obj1.prop2.attr3.value4.text"
. The goal is to achieve this level of nesting easily within a controller or service without needing to reinvent the wheel or resorting to external solutions found on sites like this or this. Is there perhaps an undocumented function such as angular.create(path_str)
that could facilitate this process?