Monday, May 4, 2015

Using AngularJS to retrieve list of U.S. Presidents in JSON format using MySafeInfo API

Here's an example of how to bind JSON data from a $http service using AngularJS. In this example we'll use U.S. Presidents data from a free data service called MySafeInfo. You can view the configurable options for this particular dataset by clicking here. Or you can view the raw data for this example by clicking here.

This example relies on AngularJS and uses to retrieve U.S. Presidents data in JSON format. MySafeInfo is a free service we offer to software developers to provide test data in a simple, flexible manner, in a variety of formats, including XML, JSON, JSONP, CSV, and more.