parse-angular-patch-2

A patch for the Parse SDK to automatically $apply() when running Parse commands


Keywords
parse, angular, angularjs, promises, promise, defer
License
MIT
Install
bower install parse-angular-patch-2

Documentation

Parse Angular Patch

Brought to you by Try.com

  • Seamless Parse integration with AngularJS, using promises ($q)
  • Never worry about $scope digests again

How to use

I. Grab the latest version of the patch here or install it using Bower

bower install parse-angular-patch-2

II. Include the module in your project

angular.module('myApp', ['ngAnimate', 'parse-angular'])

III. That's it. How hard was that?! You can now do ANYWHERE in your angular app things such as :

// Queries
var query = new Parse.Query("Monsters");
query.equalTo("name", "Frankeistein");
query.first()
.then(function(result){
        $scope.monsters = result;
});
// Cloud Code is patched too!
Parse.Cloud.run("myCloudCodeFunction", function(results) {
    $scope.data = results;
});

And your scope will always be updated. Any asynchronous Parse method is patched and wrapped inside Angular kingdom (Parse.FacebookUtils methods, Parse.User methods, etc etc)

License

MIT