Hi all
I have a working form with a dynamic model. That looks like this and works
fine.
<input type="text" name="{{component.model}}"
ng-model="formData[component.model]">
But now I want to add a value property to the dynamic model like this:
<input type="text" name="{{component.model}}"
ng-model="formData[component.model].*value*">
But then I see the following error.
TypeError: Cannot set property 'value' of undefined
Everything works fine when I hardcode the ng-model to for example:
ng-model="formData.address.value"
But with the dynamic stuff I'm getting the error.
How can I get this to work?
regards,
Leon
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.