Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('lensApp')
- .factory('LensResource', function($resource) {
- return $resource(
- 'api/lens',
- null,
- {'query': {method:'GET', isArray: false}}
- );
- });
- var params = {};
- params['id[]'] = [1,2];
- LensResource.query(params, function(data) {
- console.log(data);
- }, function(error) {
- console.log("error");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement