Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

I am using the Parse.com JS SDK for AngularJS project. I am using Parse promises and AngularJS $q service to bind Parse data to the AngularJS $scope object. I am wondering, though, are there any advantages to using JS SDK over REST API, except for the query syntax sugar and authentication management through currentUser method.

share|improve this question

1 Answer 1

I guess you need to ask yourself this:

  • Do you want to make everything yourself (thereby having total control of what happens)?
  • OR do you want leverage other peoples code, and just start building your application on top of that?

My experience is, when building apps with AngluarJS and Parse JS SDK, is that it takes some time to understand how the SDK is working - BUT when you familiarize yourself with it, the gains are enormous to how fast you can develop you application.

As you are stating yourself - Sessionhandling, for when a user has been logged in and Query-building-syntax (not forget about relational queries) has just been taking care of for you. That is, at least IMO, enough for me to choose the SDK.

Last takeaway from a AngularJS/ParseSDK developer is - try to avoid using Angular's $q-service for promise handling, and use ONLY Parse.Promise() instead. You $q-service IS NOT available in Parse Cloud Code, only Parse.Promise is (If you like me, start building all your datahandling in AngularJS and then merge it into Parse Cloud Code).

Hope these points gave you some insight.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.