Ionic Framework REST API Example withClearly Innovative | Web and Mobile Development

Ionic Framework REST API Example with $http and ngResource

Update:

If you are looking for an Ionic2 version of code to work with http request check out this sample project https://github.com/aaronksaunders/Ionic2-NutritionSample


 

Overview

This is a sample application based on off a Ionic Framework CodePen example to show the use of $http  and ngResource  in an application. In this example, we are using https://developer.nutritionix.com/  for nutrition information; showing how to access REST API with either $http  or $resource  with Ionic Framework  collection-repeat directive for rendering the data.

The complete source code is here in the github repository and it can also be accessed in the CodePen that was used in the original class demo

GitHub Source Code: https://github.com/aaronksaunders/Ionic-NutritionSample

Original CodePen: http://codepen.io/aaronksaunders/pen/jEYGPe

More Clearly Innovative Content such as blog posts and videos on Ionic Framework can be found here: http://www.clearlyinnovative.com/category/ionic/
More Clearly Innovative Content such as blog posts and videos on Ionic2 can be found here: http://www.clearlyinnovative.com/category/ionic2/

Have a question?