Can you use AngularJS with Parse.com?

I am new to developing phonegap and I am trying to choose a framework to use. I would like to use AngularJS as I read well about this, but I would like it to work with Parse.com as a backend. I noticed that in Parse.com alone they do not indicate compatibility with Angular, and a backbone network is required for their documentation and the Javascript API.

I know that AngularJS supports http, so I can communicate with Parse using the REST API. But will it end up being a mess, and will I save time and stress if I use the Backbone with the Parse.com Javascript API instead?

+17
angularjs cordova
01 Sep '13 at 8:44
source share
5 answers

I have not worked on Parse, but I believe that as long as there is a REST API, AngularJS can integrate very well with Parse.com. These links confirm this fact.

https://parse.com/questions/does-any-know-of-any-angularjs-sites-that-are-built-with-parse-that-are-open-source

http://brandid.imtqy.com/parse-angular-demo/#/

It is said that AngularJS is a very capable framework with a steep learning curve. Simple things are simple, but you need to put them down and start learning not so simple things as directives , as soon as you start creating an application of any decent size, the more you invest in AngularJS training, the more useful it becomes.

It has a very clear separation in terms of code and point of view. The code is further organized into modules, factories, services, controllers, directives, filters, etc.

But still, nothing prevents you from creating a mess with the implementation :) What I realized during this time, even if you create a mess inside AngularJS, the effects are localized and do not affect the full application due to the modular nature of Angular.

I suggest you try creating or looking at some samples using AngularJS (e.g. TodoMVC )

This is how I felt I studied and implemented AngularJS solutions enter image description here

+56
Sep 01 '13 at 9:53 on
source share

Thanks for bringing out our Parse x AngularJS. We also updated it today.

Our entire getbrandid.com site is built using Parse x AngularJS and without our servers.

We built this template after spending several years building BRANDiD and we had many best practices for sharing information with the Parse and AngularJS communities. We believe this is a match perfect in heaven, and this is the fastest way to create powerful, complex, serverless serverless applications.

We basically extended the Parse SDK to support AngularJS bindings, we eliminated tons of template code, and most importantly, we created an architecture for large serverless applications using Parse and Angular.

I highly recommend you check this out -

Parameter x AngularJS Boilerplate

+18
Oct 05 '13 at 6:05
source share

In fact, the Parse documentation does not say that you should use Parse with Backbone , it just says that some things are compatible with Backbone classes, for example Collections , which can be useful ONLY if you use Backbone .

The great difficulty of using third-party materials inside angular is its life cycle, since it uses POJO and only tracks changes to these objects at certain points in time - see the Scope Life Cycle documentation for more information.

Given that when Parse returns its callbacks, AngularJS can no longer observe these Parse objets, so you need to tell angular that the thing has changed, and you have to do this inside the digest loop, for example using $scope.$apply

I created a small wrapper for Parse.Query and Parse.Object to avoid the need for $scope.$apply all the time, let me know if you find this useful: https://github.com/felipesabino/angular-parse

+11
Dec 30 '14 at 15:47
source share

The easiest way to communicate with the parse.com backend is to use the jimrhoskins / angular-parse Angularjs module, which replaces the (trunk) ParseSDK.

The announcement is instant :-) I included it in this angular / parse templateplate .

+1
Jan 17 '15 at 19:56
source share

We used this method quite often. We decided to document our experience. His 2 part series on creating angular applications using parsing . Hope this helps!

+1
Aug 12 '15 at 16:44
source share



All Articles