-1

I have been using $q for quite sometimes, it is working all fine. But lately for web workers the injection of $q is causing an issue. The Mangled, minified q.js is not able to detect functions which are used by Parallel.js. So is there an alternative way for $q or q.js

Or else how to exclude q.js from mangling.

Aditya Singh
  • 15,810
  • 15
  • 45
  • 67
Sammi
  • 109
  • 3
  • 11
  • If you add a little bit detail with your error log, may be it will be easier to answer your question. – Khalid Hussain Jun 06 '16 at 06:16
  • 1
    More info on the actual issue your having would help. don't forget `$q` is used in the core of angular, that's how all `$http` and the interceptors work. If you used an alternative angular won't. Besides that your willing to manually call `$scope.$apply` in every non-`$q` promise? – ste2425 Jun 06 '16 at 06:56

1 Answers1

1

You could use ES2015 native Promises (and some kind of polyfill for compatibility with older browsers of course, like es6-shim) as stated in this blog post.

Kutyel
  • 8,575
  • 3
  • 30
  • 61