Created
March 25, 2014 07:09
-
-
Save jkyamog/9756527 to your computer and use it in GitHub Desktop.
getting angular.js resource to work with purnam/gyr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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