CTO at Narada Robotics. SW engineer focused on 3D and mobile. Angular & Ionic evangelist. Father, lover, blogger, Udemy trainer. — blog.enriqueoriol.com —
Wow, you’re so wrong in so many ways I don’t even know where to start from.
I don’t want to lose time arguing with you, since I don’t know who you are, neither I am interested. But let me clarify you some points:
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.