How to convert query with withHttpConfig to customGET
See original GitHub issueHi How to convert this query
Restangular.one('user/export/excel').withHttpConfig({responseType: 'blob'}).get().then(function(response) {
var url = (window.URL || window.webkitURL).createObjectURL(response);
window.open(url,"_self");
})
to
var _userService = Restangular.all('user');
_userService.customGET('export/excel').withHttpConfig({responseType: 'blob'}).get().then(function(response) {
var url = (window.URL || window.webkitURL).createObjectURL(response);
window.open(url,"_self");
})
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
https://softwarepublico.gov.br/gitlab/noosfero-the...
It is converted to a query string, if not already a string. ... params: any, headers: any): IPromise<any>; + withHttpConfig(httpConfig: angular.
Read more >Untitled - Plunker
... .initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px ... Error("'auto' array mode is for query parameters only");return new d(this ...
Read more >斜角一, Ngx-restangular, Restangular customPUT, Mgonto 长方形 ...
withHttpConfig ({transformRequest: angular.identity}) .customPOST(formData, undefined, undefined, { 'Content-Type': undefined}); Ngx-Restangular 是为任何 ...
Read more >Http failure during parsing for http://{url} - ...anycodings
... query string params and anycodings_ngx-restangular headers with customGET, ... withHttpConfig to pass anycodings_ngx-restangular custom config to the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
should work.
Closing due to the nature and age of issue. Please consider the updated issue guidelines and reopen if needed.