GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jbro-io/parse-angular: Utilities for working with Parse.com data and AngularJS

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
example/app
example/app
 
 
LICENSE
LICENSE
 
 
ParseServices.js
ParseServices.js
 
 
README.md
README.md
 
 

Repository files navigation

parse-angular

Utilities for working with Parse.com data.

Check out my blog post for a more detailed walkthough.

Create a new object

//create new contact record from string
$scope.newContact = new ParseObject('Contact', ['firstName','lastName','email']);

/* OR */

//create new contact record from parse object instance
var Contact = Parse.Object.extend('Contact');
$scope.newContact = new ParseObject(new Contact(), ['firstName','lastName','email']);

We can now bind $scope.newContact to any directive with ng-model to modify or display the object properties.

<input type="text" ng-model="newContact.firstName" />
<input type="text" ng-model="newContact.lastName" />
<input type="text" ng-model="newContact.email" />
<button ng-click="newContact.save()">Save</button>

Retrieving records

var query = new Parse.Query(Parse.Object.extend('Contact'));
ParseQuery(query, {functionToCall:'first'}).then(function(obj){
    $scope.newContact = new ParseObject(obj, ['firstName','lastName','email']);
});

This creates a query to retrieve the first record from the Contact class. The returned object is then wrapped in an instance of my ParseObject function allowing the fields to be accessed via the object properties.

About

Utilities for working with Parse.com data and AngularJS

www.jonathanbroquist.com/integrating-parse-data-with-ng-model-in-angularjs/

Resources

Readme
MIT license
Activity

Stars

31 stars

Watchers

5 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.