Paginating our Angular results

Now we have a ton of results, 730, as seen in this request:

Paginating our Angular results

Since we cannot show all 730 at once, and since the API gives us 20 at a time, let's paginate through their APIs.

Getting ready

Use a fresh Laravel installation and follow these steps.

How to do it…

  1. Install a library that helps with pagination and tons of other things:
    >npm install angular-ui-bootstrap --save
    
  2. Then, load the library into our public folder by copying it over to public/js and public/css. Later, we will optimize this part of the workflow:
    How to do it…
  3. You will find ...

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.