title: Angular 2 download PDF from API and Display it in View
body: <p>I'm learning Angular 2 Beta. I wonder how to download the PDF file from the API and display it in my view? I've tried to make a request using the following:</p>
  
  <pre><code>    var headers = new Headers();
      headers.append('Accept', 'application/pdf');
      var options = new ResponseOptions({
          headers: headers
      });
      var response = new Response(options);
      this.http.get(this.setUrl(endpoint), response).map(res =&gt; res.arrayBuffer()).subscribe(r=&gt;{
         console.log(r);
      })
  </code></pre>
  
  <ul>
  <li>Please note that I only use the <code>console.log</code> to see the value of <code>r</code></li>
  </ul>
  
  <p>But I always get the following exception message:</p>
  
  <blockquote>
    <p>"arrayBuffer()" method not implemented on Response superclass</p>
  </blockquote>
  
  <p>Is it because that method isn't ready yet in Angular 2 Beta? Or is there any mistake that I made?</p>
  
  <p>Any help would be appreciated. Thank you very much.</p>