title: What is the best way for me to push data to a component from a service?
body: <p>In my angular project I currently have a service that uses http calls to retrieve data from my java code. Every 10 seconds the service calls the Java side and gets new data from it. I now have another component that needs the data in my service. I need this component to have a field called 'data' that just gets updated automatically when the service gets new information. </p>
  
  <p><strong>How can I set them up so that the service pushes the new information to my other component</strong>? I would like to be able to use {{data}} in my component's html and have that be automatically updated without having to reload the page.</p>
  
  <p>My component does have the service 'Autowired' in already. So currently I can just call 'this.data = this.service.getData()' but that call is within my ngOnInit method so it only happens once, and the data field does not get updated when the service's data field gets updated. </p>