r/angular • • Jul 07 '25

React vs Angular

Post image
656 Upvotes

84 comments sorted by

View all comments

Show parent comment

1

u/janne_harju Jul 07 '25

State should always be in service. So if you say you change other components state is wrong from beginning

1

u/CheapChallenge Jul 07 '25

I mean component A has a click handler which changes state of a service which changes the state of another service which has a state that another component B depends on to get a signal value.

Not that the component directly manages the state.

1

u/janne_harju Jul 07 '25

It can be done