David, Address[0] doesn't refer to an object. Address is not an array - you should be using Person.Address['Line 1']
Further, you should be using keys without spaces in them. On Wed, Mar 5, 2014 at 4:47 PM, David Duff <[email protected]>wrote: > Hi, > > I have a person object, which uses an Address object > > "Person": { > "Id": 1, > "Forename": "Forename", > "Surname": "Surname", > "Address": { > "Id": 1, > "Line 1": "Line 1, > } > } > > I trying to access the data for the form where the person would update the > details > > <input type="text" name="addressLine1" > data-ng-model="Person.Address[0].Line1" /> > > Doesn't work. What am I doing wrong? How should I be accessing "Line 1"? > > Thanks in advance, > David > > -- > 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/groups/opt_out. > -- chrisrhoden -- 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/groups/opt_out.
