title: ionic pass storage value to subscribe method
body: <p>My session values are stores in  array</p>
  
  <pre><code>this.storage.get('userinfo').then((data)=&gt;{
      let sid = data.sid;
    });
  </code></pre>
  
  <p>I want to pass this <code>sid</code> to my php call. I used the below code. But it is not working. How to pass this in subscribe method. </p>
  
  <pre><code>   this.http.get(Constant.domainConfig.base_url+'api/restaurant_api/restaurants?roid='+sid).subscribe(data=&gt;{
    this.list = data.json();
    console.log(data.json());
  })
  </code></pre>
  
  <p>Thank you. </p>