title: rxjs behavior subject set value from component
body: <p>I'm trying to achieve the following:</p>
  
  <p>I have a service A, this service holds an rxjs behaviorsubject:</p>
  
  <pre><code>public publishedList:BehaviorSubject&lt;Data&gt; = new BehaviorSubject&lt;Data&gt;(null)
  
  getlist():Observable&lt;Data&gt; {
  return this.http.post(......).map((responseData) =&gt; {
   this.publishedList.next(responseData)
   this.publishedList.asObservable().share
   }
  }
  </code></pre>
  
  <p>Component A listens to this behaviorsubject using subscribe in the constructor.<br>
  No issues here.</p>
  
  <p>Now component B comes in to place and holds a button that should be able to clear or empty the publishedList in the service and Component A should be updated.</p>
  
  <p>Is this possible? How do I achieve this?</p>
  
  <p>Thanks</p>