I've just tried to have this <https://github.com/rolandjitsu/ng2-play> app 
running in a web worker by following the example 
<https://github.com/angular/angular/tree/master/modules/examples/src/web_workers/kitchen_sink>
 
on the angular repo, but I am not sure if I use the npm distribution and I 
set up an app as the example, do I need the zone-microtask-web-workers.js 
<https://github.com/angular/angular/blob/master/modules/examples/src/assets/zone-microtask-web-workers.js>
 that is used in the examples folder?


Because I am a bit confused about SCRIPTS.js 
<https://github.com/angular/angular/blob/master/tools/broccoli/js-replace/SCRIPTS.js>
's importScripts which does import the script I mentioned above and I 
cannot seem to find it within the npm distribution.


After I manage to set it up though using the zone-microtask-web-workers.js 
from the main repo, I did get an exception from the Router:


EXCEPTION: Error during instantiation of LocationStrategy! (App -> Router ->
 Location -> LocationStrategy).
ORIGINAL EXCEPTION: TypeError: Cannot read property 'getLocation' of 
undefined
ORIGINAL STACKTRACE:
TypeError: Cannot read property 'getLocation' of undefined
    at new HashLocationStrategy 
(:8000/lib/angular2/src/router/hash_location_strategy.js:26)
    at eval (reflection_capabilities.js:12)
    at Injector._new (injector.js:555)
    at InjectorDynamicStrategy.getObjByKeyId (injector.js:301)
    at Injector._getByKeyDefault (injector.js:695)
    at Injector._getByKey (injector.js:646)
    at Injector._getByDependency (injector.js:632)
    at Injector._new (injector.js:524)
    at InjectorDynamicStrategy.getObjByKeyId (injector.js:301)
    at Injector._getByKeyDefault (injector.js:695)



-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to