Skip to content

Instantly share code, notes, and snippets.

View codingmeow's full-sized avatar

Jennifer Cui codingmeow

  • Mindbodygreen
  • New York, NY
View GitHub Profile
  • STEP 1: npm install js-data and js-data-angular in that order
  • STEP 2: list js-data as a dependency and set default values (DSProvider is the name of the DS object in the config step):
var app = angular.module('nameOfApp', ['js-data'])
  .config(function(DSProvider) {
  
    DSProvider.defaults.basePath = '/api';
    DSProvider.defaults.idAttribute = '_id';
    
 })