Simple example of Web Worker in Angular 2, implemented as a Service, that calculate the fibonacci sequence. The example simulate Javascript Web Workers using Promises.
The example no need specific installation, the real util code is in "app" directory.
- service/fibonacci-worker.service.ts
- service/worker/worker.ts
For demostration run demo