Issue In my app i’m using restangular, and i have such method (which i converted from the plain $http request). And i don’t know how to use correctly restangular with promises. How is it possible? Here is my code: var
Continue readingTag: deferred
angular-file-upload async filter in angularjs
Issue I’m using angular-file-upload to upload files, where I’m writing a filter in which I need to take headers from the csv file selected for upload & match them with headers from some API. I’m able to get headers from
Continue readingDeferred that extends Promise
Issue How to implement a Deferred promise that extends Promise? It’s important to extend Promise for type-safe usage where a typical Promise is expected. Following implementation export class Deferred<T> extends Promise<T> { public _resolveSelf; public _rejectSelf; constructor() { super( (resolve,
Continue readingHow to chain execution of array of functions when every function returns deferred.promise?
Issue I have created my first deferred object in Node.js using deferred module and it works great when I pass result to next function and trigger resolve and reject.How to chain execution of array of functions when every function returns
Continue reading