Hi I have question how can I defube ng-model for input.
I have dynymicly created (in init function) json structure similar this {
name: "Jack", surname: "Jack", addr: {city: "aaaa", code: 456, anotherData:
{abc: "adf", abcde: "ggdf"}}}
In Template I made by ng-repeat and ng-include form and i dont know how
declare ng-model for input:
for the first level works for me: ng-model="newEntry[value.element]"
newEntry is Json dynamicly created in controller in init function.
'value.element' is property from ng-repeat.
For First level it works but how do it for next level (plunge) (forexample
property: city, code, abc, abcde) ?
Like ng-mode="newEntry[addr.city] for city but by value from ng-repeat?
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.