Jason Warner
Jan 14, 2024

--

Maybe your business logic is in the wrong place. What if you used a service to handle your business logic and made your templates depend on that. Then your service could run any time something changes and you could use observables to update dependent views.

I have been exploring lots of different ways to manage state recently and there are places for setter/getter pattern and ngOnChanges. I think people need to spend more time thinking about how state affects their components.

--

--

Jason Warner
Jason Warner

Written by Jason Warner

I enjoy everything related to code and being a dev. However, my only skills are showing up and being lucky and I'm not sure if luck is a talent.

No responses yet