Im wondering if someone could please advise.
I have data coming in through a Socket.io service to a component. Trying to decide what approach is most logical?
I can either:
A. Have the parent component call the observer and Push the data to the variable via an @Input and then update it via OnChange.
B. Call the service in the component and just update the variable from the subscriber.
C. call the service in the component and update the variable in the ngDoCheck.
Just wondering which makes the most logical sense? or does it actually even matter seeing as the data updates regardless of each route?