Skip to content

Instantly share code, notes, and snippets.

@jkyamog
Created March 25, 2014 07:09
Show Gist options
  • Save jkyamog/9756527 to your computer and use it in GitHub Desktop.
Save jkyamog/9756527 to your computer and use it in GitHub Desktop.
getting angular.js resource to work with purnam/gyr
(def.module app [ngResource])
(def.service app.productFactory [$resource]
($resource "/products"))
(def.controller app.productController [$scope productFactory]
(! $scope.products (. productFactory query)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment