title: how to subscribe to back end data in angular js2
body: <p>export class Search {</p>
  
  <pre><code>data: string;
  prop: string = 'connenct';
  details: ISearch[];
  constructor(public http: Http,public _profileservice: GetSocietyList) {
      this.http = http;
        this._profileservice.getSocietyList()
                .subscribe(
                 response =&gt; {
                      this.details = response;
  
              })
          })
  
  }
  </code></pre>
  
  <p>Here i am subscribing the whole response to details but i want only some part of my details i.e where connection_status = 3 and 4.Can some one please  suggest help.</p>