This project shows how to implement pagination in Angular as shown in the article Angular 2/5 - Pagination Example with Logic like Google by Jason Watmore. His GitHub repo with his original project can be found here.
- Angular CLI v1.6.3
- Angular v5.1.3
- Bulma CSS Framework
- Clone this repo
git clone https://github.com/Stanza987/angular-pagination.git
cd
into the folder of the cloned repo- Run
yarn install
to install dependencies - Run
ng serve
, and navigate tohttp://localhost:4200/
- Run
ng build --prod
- Run
firebase init
and chooseHosting
, follow the on-screen prompts. - Delete the
public
directory automatically generated by the Firebase CLI - Change
firebase.json
to{ "hosting": { "public": "dist", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }
- Run
firebase deploy