A news app built with Ionic/Angular and using Wordpress REST API
npm install
Open the articles.ts
file inside src/app/providers
folder.
baseUrl: string = ""; // wp-api url
Enter the value of your wordpress website base url in the following format : <ROOT_URL>/wp-json/wp/v2/
.
Then on the same file, replace the loadCategories
method by returning the categories you want to display in the app.
return [{
"id": 0,
"name": "Accueil",
"index": 0
}]
Your can get your wordpress blog category list by browsing this url : <ROOT_URL>/wp-json/wp/v2/categories/
.
Build
npm run ionic:build
Run
npm run ionic:serve
👤 bacarybruno
- Github: @bacarybruno
- LinkedIn: @bacarybruno
Give a ⭐️ if this project helped you!
Copyright © 2017 bacarybruno.
This README was generated with ❤️ by readme-md-generator