Thanks for taking the time to reply. I will try and come up with a smaller
example to demonstrate my issue. Cheers.
On Tuesday, 1 April 2014 04:46:26 UTC+1, Gordon Bockus wrote:
>
> Person[0].Salary[0].Salary maybe? Just a guessing game until we can see
> your code.
>
> Gordon
>
> On Monday, March 31, 2014 3:54:48 PM UTC-5, David Duff wrote:
>>
>> Hi,
>>
>> I am posting the following json to my web api controller when the person
>> object is posted, I would expect to see person details, address details,
>> and salary details. The salary details are missing.
>>
>> [
>> {
>> "Id": 5,
>> "AddressId": 5,
>> "Salutation": "Mr",
>> "FirstName": "Test",
>> "Surname": "Tester",
>> "Address": {
>> "Id": 5,
>> "PersonId": 5,
>> "AddressType": 1,
>> "AddressLine1": "1 Test Rd",
>> "AddressLine2": null,
>> "AddressLine3": null,
>> "Postcode": "T1 1TE",
>> "City": "TestTown"
>> },
>> "Salary": [
>> {
>> "Id": 1,
>> "PersonId": 5,
>> "Salary": 1004,
>> "CreatedDate": "0001-01-01T00:00:00"
>> }
>> ]
>> }
>> ]
>>
>> Salary is a list of salary objects within Person. If I wanted to update
>> the salary value 1004 how would I do this? I know I'm doing something
>> wrong. Person.Salary[0].Salary and Person.Salary['Salary'] I have tried.
>> I'm trying a simple add update example and this is the sticking point.
>> I'm trying to do this using ng-model.
>>
>> 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/d/optout.