cch5ng / diet-nutrition

(in progress)
0 stars 0 forks source link

add logic to query health api #4

Closed cch5ng closed 9 years ago

cch5ng commented 9 years ago

https://developer.nutritionix.com/docs/v1_1

cch5ng commented 9 years ago
cch5ng commented 9 years ago
cch5ng commented 9 years ago

api query format: https://api.nutritionix.com/v1_1/search/mcdonalds?results=0:20&fields=item_name,brand_name,item_id,nf_calories&appId=APPID&appKey=APPKEY

cch5ng commented 9 years ago
cch5ng commented 9 years ago

create a template to display food items

cch5ng commented 9 years ago

spent a lot of time troubleshooting display of content from model and template issue was that underscore + backbone template syntax is <%= to start the model var and %> to end the model var (equiv to angular {{ }})

cch5ng commented 9 years ago

also fixed the logic to display search results using backbone model and underscore template d6e321e02bbb9262781cd195c02ae75018f86e48