79319739

Date: 2024-12-31 10:38:41
Score: 1.5
Natty:
Report link

Thanks to skink's answer I could go through different articles about smart and dumb components. Actually what I was looking for relies in BehaviorSubject of RxJS: by creating an additional service, we can notify the DataComponent that an action was performed, without worrying about that it is far away from the relation parent-child. Not sure about the over-using of this approach, but in my case it seems to work fine.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ncasteln