We need to remember two important things when using Web Workers in Angular projects,
- Some environments or platforms(like @angular/platform-server) used in Server-side Rendering, don’t support Web Workers. In this case we need to provide a fallback mechanism to perform the computations to work in this environments.
- Running Angular in web worker using
@angular/platform-webworker
is not yet supported in Angular CLI.