Thanks Chris, much appreciated.  It still isn't working but it has given a 
couple of ideas before asking any more questions.

Person displays [object object]
Person.Address <Blank>
Person.Address['Line1'] <Blank>

The json data returned from the web api get request has all the data.  Just 
can't access it just now.  Using postman to verify the get request works.

On Wednesday, 5 March 2014 23:27:06 UTC, Chris Rhoden wrote:
>
> 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]<javascript:>
> > 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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/d/optout.

Reply via email to