title: Angular 4 pagination in API
body: <p>I'm calling an API endpoint that uses pagination in the header. I want to make use of that, so I need to take two steps:</p>
  
  <ul>
  <li>I need to parse the HTTP <code>Link</code> header.</li>
  <li>I should implement pagination in Angular 4.</li>
  </ul>
  
  <p>So currently, I have this service built:</p>
  
  <pre><code>getBooks() {
      return this.http
        .get(`${BaseService.baseUrl}/books`)
        .map(response =&gt; &lt;Book[]&gt; response.json());
  }
  </code></pre>
  
  <p>Now I need to parse the headers from the response, but I'm not sure how to? I'm also not sure how I should build the pagination in my component.</p>
  
  <p>Who could set me up with some help, please?</p>