title: Angular to call a post and get call followed by again post and get call once the previous get call is completed
body: <p>I have post call followed by get call as below:</p>
  <pre><code> sendMessage(value) {
    getMessages(value);
   }
  
    getMessages(value) {
     this.http.post('url').subscribe((response)=&gt; {
        if(response) {
     this.http.get('url).subscribe((getresponse)=&gt; {
        if(getresponse) {
        // get call completed.
        }
       });
      }
    });
    }
  </code></pre>
  <p>i need to call post followed by get again after completion of previous get then post followed by get.
  currently when the user sends messages continuously may be twice sendMessage() method gets triggered twice but the call is happening like post call, post call then followed by get call get call. instead it should be post call followed get call and then for second message post followed by get call.</p>
  <p>can you please let me know how we can achieve this in angular?</p>