O'Reilly logo

Learning Node.js for Mobile Application Development by Milorad Jevdjenic, Stefan Buttigieg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required