nutritionix / track-api-angular-client

MIT License
0 stars 0 forks source link

Add function to apply multiplier to food object #1

Closed mattsilv closed 8 years ago

mattsilv commented 8 years ago

Example:

Protein Shake has serving qty=12, serving unit=oz, calories=100

If user indicates they had 10oz protein shake, the library would get the multiplier by taking 10/12, and apply that multiplier to all values in the food object.

Yurko-Fedoriv commented 8 years ago

@mattsilv FYI added helper service with couple useful methods: http://nutritionix.github.io/track-api-angular-client/docs/#/api/nix.track-api-client.service:nixTrackUtils