CTO at Narada Robotics. SW engineer focused on 3D and mobile. Angular & Ionic evangelist. Father, lover, blogger, Udemy trainer. — blog.enriqueoriol.com —
Angular good practices recommends you to avoid any logic inside components that it’s not directly related with the view. You should move all that logic to services.
This article describes, step by step, how to modify an existing Angular CLI generated app so it can take advantage of the Angular WebWorkers and run all the business logic inside an isolated thread.