Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e
src ok May 28, 2019
.editorconfig initial commit May 24, 2019
.gitignore initial commit May 24, 2019
README.md readme May 28, 2019
angular.json queens problem May 24, 2019
browserslist
karma.conf.js initial commit May 24, 2019
package-lock.json initial commit May 24, 2019
package.json initial commit May 24, 2019
queens.png readme May 28, 2019
tsconfig.app.json queens problem May 24, 2019
tsconfig.json initial commit May 24, 2019
tsconfig.spec.json initial commit May 24, 2019
tsconfig.worker.json queens problem May 24, 2019
tslint.json initial commit May 24, 2019

README.md

Angular 8 Demo

Shows some new features in Angular 8.

Queens Problem

The implementation of the queens problem shows how we can execute intense calulations in the background using web worker.

To test it, request a solution for the 12x12 queens problem using the main thread and also using web workers. You'll see that in the first case the UI freezes while in the second case one can interact with it during the calcuation.

Queens Problem

4 Steps to your web worker in Angular 8

  • Generate a component: ng g c my-calc
  • In the same directory, generate a worker with the same name: ng g worker my-calc
    • This gives you a worker script and some code within the component to call the worker
  • Update the worker script to your needs
  • Update the code for calling the worker to your needs
You can’t perform that action at this time.