Pokedex website made with Angular, TypeScript and public PokéAPI
https://hovinhthanh7893.github.io/pokedex/
- Install
npm install -g @angular/cli
- Init project
ng new project-folder-name
- Run dev
ng serve --open
- Create new header
ng g c header
- Create service for data
ng g s service/data
-
Import HttpClientModule to app.module.ts
-
Import HttpClient to data.service.ts > getPokemons function
-
Create new pokemon list
ng g c pokemon-list
- Install pagination
npm install ngx-pagination --save
-
Import NgxPaginationModule to app.module.ts
-
Create new footer
ng g c footer
- Install package for gh-pages
ng add angular-cli-ghpages
- Deploy to gh-pages branch
ng deploy --base-href=https://hovinhthanh7893.github.io/pokedex/