top of page
Search

Ionic Framework REST API Example with $http and ngResource

  • Writer: Clearly Innovative
    Clearly Innovative
  • Nov 3, 2015
  • 1 min read



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  andngResource  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


More Clearly Innovative Content such as blog posts and videos on Ionic Framework can be found herehttp://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/

留言


Be a Socialite and  Follow Us:

  • White Facebook Icon
  • White Twitter Icon
  • White Instagram Icon
bottom of page