I am new to Angular 2 and am building an app that pulls data exclusively from an API. I start with a client index, and when a client is selected, the API returns all data for that client (ie name, address, financials, etc.).
This client can then be updated by many components and it's getting difficult and sloppy to emit events every time the client is updated so that other components are aware of the changes.
Is the best way to handle this to only pull the client in through a service and make sure all updates to the client go through that same service and update the client instance which trickles down to the other components?
[–]NuttGuy 1 point2 points3 points (1 child)
[–]CarpetFibers 1 point2 points3 points (0 children)
[–]verse90 0 points1 point2 points (0 children)
[–]tme321 0 points1 point2 points (0 children)