Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. angular.module('lensApp')
  2. .factory('LensResource', function($resource) {
  3. return $resource(
  4. 'api/lens',
  5. null,
  6. {'query': {method:'GET', isArray: false}}
  7. );
  8. });
  9.  
  10. var params = {};
  11. params['id[]'] = [1,2];
  12. LensResource.query(params, function(data) {
  13. console.log(data);
  14. }, function(error) {
  15. console.log("error");
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement