Hi i'm showing data from json with angularjs if i write this
1. <div class="boxhotel" >
2. <p>rateChange: {{roomz.RateInfo}}</p>
3. </div>
i get this
1. {"@rateChange": "false",
2. "@promo": "false",
3. "@priceBreakdown": "true",
4. "ChargeableRateInfo": {
5. "@total": "343.9",
6. "@surchargeTotal": "53.9",
7. "@nightlyRateTotal": "290.0",
8. "@maxNightlyRate": "145.0",
9. "@currencyCode": "USD",
10. "@commissionableUsdTotal": "290.0",
11. "@averageRate": "145.0",
12. "@averageBaseRate": "145.0",
13. "NightlyRatesPerRoom": {
14. "@size": "2",
15. "NightlyRate": [
16. {
17. "@promo": "false",
18. "@rate": "145.0",
19. "@baseRate": "145.0"
20. },
21. {
22. "@promo": "false",
23. "@rate": "145.0",
24. "@baseRate": "145.0"
25. }
26. ]
27. },
28. "Surcharges": {
29. "@size": "1",
30. "Surcharge": {
31. "@amount": "53.9",
32. "@type": "TaxAndServiceFee"
33. }
34. }
35. }
36. }
how should i write to retrieve @rateChange or @total ?? thank you for your
help
this is the complete json
{
"HotelRoomAvailabilityResponse": {
"@size": "2",
"customerSessionId": "0ABAA847-6795-E091-3932-08137F997B60",
"hotelId": 125719,
"arrivalDate": "11/11/2012",
"departureDate": "11/13/2012",
"hotelName": "Hotel FIVE",
"hotelAddress": "2200 Fifth Avenue",
"hotelCity": "Seattle",
"hotelStateProvince": "WA",
"hotelCountry": "US",
"numberOfRoomsRequested": 1,
"checkInInstructions": " Notifications and Fees:There are no room
charges for children 17 years old and younger who occupy the same room as
their parents or guardians, using existing bedding. The following fees
and deposits are charged by the property at time of service, check-in, or
check-out. Self parking fee: USD 15 per nightPet fee: USD 20 per room, per
nightPet deposit: USD 20 per night The above list may not be comprehensive.
Fees and deposits may not include tax and are subject to change. ",
"checkInInstructions": 4,
"rateKey": "b68add38-5f2d-40fb-ad27-fd67f9551043",
"HotelRoomResponse": [
{
"rateCode": 200820962,
"roomTypeCode": 200069341,
"roomTypeDescription": "Deluxe 2 Queens - Non Refundable",
"supplierType": "E",
"taxRate": 43.9,
"rateChange": false,
"nonRefundable": true,
"guaranteeRequired": false,
"depositRequired": true,
"immediateChargeRequired": true,
"currentAllotment": 8,
"propertyId": 11969,
"promoId": 201442181,
"promoDescription": "14 day advance purchase",
"rateOccupancyPerRoom": 4,
"quotedOccupancy": 2,
"minGuestAge": 0,
"RateInfo": {
"@rateChange": "false",
"@promo": "true",
"@priceBreakdown": "true",
"ChargeableRateInfo": {
"@total": "275.9",
"@surchargeTotal": "43.9",
"@nightlyRateTotal": "232.0",
"@maxNightlyRate": "116.0",
"@currencyCode": "USD",
"@commissionableUsdTotal": "232.0",
"@averageRate": "116.0",
"@averageBaseRate": "145.0",
"NightlyRatesPerRoom": {
"@size": "2",
"NightlyRate": [
{
"@promo": "true",
"@rate": "116.0",
"@baseRate": "145.0"
},
{
"@promo": "true",
"@rate": "116.0",
"@baseRate": "145.0"
}
]
},
"Surcharges": {
"@size": "1",
"Surcharge": {
"@amount": "43.9",
"@type": "TaxAndServiceFee"
}
}
}
},
"ValueAdds": {
"@size": "1",
"ValueAdd": {
"@id": "2048",
"description": "Free Wireless Internet"
}
},
"deepLink":
"http://travel.ian.com/hotels/priceCheck.jsp?cid=55505&locale=en_US¤cyCode=USD&numberOfRooms=1&room-0-adult-total=2&room-0-child-total=2&room-0-child-0-age=5&room-0-child-1-age=7&rateChange=false&rateCode=200820962&roomTypeCodeDescription=Deluxe+2+Queens+-+Non+Refundable&roomTypeCode=200069341&cityLink=Seattle&stateProvinceLink=WA&countryLink=US&resType=hotel&propertyID=11969&hotelID=125719&supplierType=E&propertyType=H&requestKey=b68add38-5f2d-40fb-ad27-fd67f9551043&rateKey=b68add38-5f2d-40fb-ad27-fd67f9551043&arrivalMonth=10&arrivalDay=11&arrivalYear=2012&departureMonth=10&departureDay=13&departureYear=2012&nativeNightlyRates=145.0,145.0&nativeCurrencyCode=USD&nativeRoomRate=333.9&displayNightlyRates=145.0,145.0&displayCurrencyCode=USD&displayRoomRate=333.9&chargeableRoomRateTotal=333.9&chargeableRoomRateTaxes=43.9&guarantee=C&directConnect=false&rateFrequency=B&rateIsBase=true"
,
"RoomImages": {
"@size": "1",
"RoomImage": {
"url": "http://media.fgbgbb
.com/hotels/1000000/20000/12000/11969/11969_64_s.jpg"
}
}
},
{
"rateCode": 200410345,
"roomTypeCode": 200069341,
"roomTypeDescription": "Deluxe 2 Queens",
"supplierType": "E",
"taxRate": 53.9,
"rateChange": false,
"nonRefundable": false,
"guaranteeRequired": false,
"depositRequired": true,
"immediateChargeRequired": true,
"currentAllotment": 8,
"propertyId": 11969,
"rateOccupancyPerRoom": 4,
"quotedOccupancy": 2,
"minGuestAge": 0,
"RateInfo": {
"@rateChange": "false",
"@promo": "false",
"@priceBreakdown": "true",
"ChargeableRateInfo": {
"@total": "343.9",
"@surchargeTotal": "53.9",
"@nightlyRateTotal": "290.0",
"@maxNightlyRate": "145.0",
"@currencyCode": "USD",
"@commissionableUsdTotal": "290.0",
"@averageRate": "145.0",
"@averageBaseRate": "145.0",
"NightlyRatesPerRoom": {
"@size": "2",
"NightlyRate": [
{
"@promo": "false",
"@rate": "145.0",
"@baseRate": "145.0"
},
{
"@promo": "false",
"@rate": "145.0",
"@baseRate": "145.0"
}
]
},
"Surcharges": {
"@size": "1",
"Surcharge": {
"@amount": "53.9",
"@type": "TaxAndServiceFee"
}
}
}
},
"ValueAdds": {
"@size": "1",
"ValueAdd": {
"@id": "2048",
"description": "Free Wireless Internet"
}
},
"deepLink":
"http://travel.ian.com/hotels/priceCheck.jsp?cid=55505&locale=en_US¤cyCode=USD&numberOfRooms=1&room-0-adult-total=2&room-0-child-total=2&room-0-child-0-age=5&room-0-child-1-age=7&rateChange=false&rateCode=200410345&roomTypeCodeDescription=Deluxe+2+Queens&roomTypeCode=200069341&cityLink=Seattle&stateProvinceLink=WA&countryLink=US&resType=hotel&propertyID=11969&hotelID=125719&supplierType=E&propertyType=H&requestKey=b68add38-5f2d-40fb-ad27-fd67f9551043&rateKey=b68add38-5f2d-40fb-ad27-fd67f9551043&arrivalMonth=10&arrivalDay=11&arrivalYear=2012&departureMonth=10&departureDay=13&departureYear=2012&nativeNightlyRates=145.0,145.0&nativeCurrencyCode=USD&nativeRoomRate=343.9&displayNightlyRates=145.0,145.0&displayCurrencyCode=USD&displayRoomRate=343.9&chargeableRoomRateTotal=343.9&chargeableRoomRateTaxes=53.9&guarantee=C&directConnect=false&rateFrequency=B&rateIsBase=true"
,
"RoomImages": {
"@size": "1",
"RoomImage": {
"url":
"http://media.fgbgb.com/hotels/1000000/20000/12000/11969/11969_64_s.jpg"
}
}
}
]
}
}
--
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.