Connecting Parse to our project

In order to connect the Parse data to our project, we will need to create an AngularJS service that performs the necessary CRUD operations to interact with the Parse REST API.

The code editor of our choice is Atom, the GitHub open source editor. Start by adding the project folder to Atom by navigating to it:

File | Add Project Folder

Create a file named services.js with the following path:

www | js | services.js

Start by connecting the services. Define the service as follows:

angular.module('ionictodo.services',[]).factory('Todo',['$http',function($http){
  return {

  }
}]);

At this stage, our factory object Todo is an empty object, and we will need to add the necessary Parse.com API methods to it. It's important to note that ...

Get Learning Node.js for Mobile Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.