title: How to use home component data in other component?
body: <p>Below is my code, how to use (this.categoryType) in other component</p>
  
  <pre><code>getCategoryDetails(){
  return this.http.get('ip/ramu/api/api/…')
  .map((res:Response) =&gt; res.json());
  }
  </code></pre>
  
  <p>Above code I am using in webservice.ts</p>
  
  <pre><code>ngOnInit() { this.wsp.getCategoryDetails().subscribe(data =&gt; {
  this.categoryType = data; });
  }
  </code></pre>
  
  <p>Above code I have used in home.ts, but I want use this response in other component.</p>