Skip to content

Simple pagination example made with Angular (data from REST API).

License

Notifications You must be signed in to change notification settings

aggelos24/angular-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pagination example made with Angular

Description

This is a simple, single-page application that gets data (generated with JSON Generator) from a fake REST API (I use json-server), sorts, paginates and displays them. The application requests data for one page at a time.

Steps

  • Install json-server
npm install -g json-server
  • Download angular-pagination project
  • cd to the path you have the data.json file and type:
json-server data.json

Now you have a fake REST API, dont interrupt it. Just click here to test it.

If you want to build it yourself, you will need to follow some additional steps:

  • Install Angular
npm install -g @angular/cli
  • Create new project
ng new myproject
  • Copy downloaded files inside src and paste them in your myproject/src folder.
  • Using terminal, go to your myproject folder and type:
ng serve --open

You are ready, the application must be running at localhost:4200

About

Simple pagination example made with Angular (data from REST API).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published