Last active
August 29, 2015 14:04
-
-
Save fmtarif/55383d359d48074a9612 to your computer and use it in GitHub Desktop.
#ng
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
| $http({ | |
| method: 'GET', | |
| url: endpoint, | |
| params: {offset: offset, limit: limit}, | |
| /*alt - does the same thing | |
| method: 'POST', | |
| url: endpoint, | |
| data: 'offset='+offset+'&limit='+limit, | |
| headers: {'Content-Type': 'application/x-www-form-urlencoded'} | |
| */ | |
| }) | |
| /* shorthand for above | |
| $http.get(endpoint+ '?offset='+offset+'&limit='+limit | |
| ) | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment