10+ Angular 2 and WordPress Integrations Examples

Handsontable JavaScript Spreadsheet Most popular component for web apps

Here are some very useful Angular 2 and WordPress Integrations Examples, Demos and Apps which you can use to learn more about how to combine wordpress and angular2. There is a mixture of resources following on from my previous post on Angular 1 WordPress Plugins and should give you a quick start to get up and running with a wordpress powered angular web application.

It seems to be common to use the WP Rest API 2 (JSON) to create that harmony through PHP/MYSQL (WordPress.org development environment) and boostrap your Javascript/TypeScript/Dart AngularJS 2 web app. The final version of Angular 2 was released in September 2016 and it seems to have great features such as Asynchronous template compilation
,decorators, which will help when hooking it up to WordPress and to put it bluntly, there is no more scope…or controllers, everything is now a module.

WordPress is released under the GPLv2 (or later) license from the Free Software Foundation. Everyone knows that WordPress is known for its vulnerabilities and exploits so be sure to keep your WP version updated as a measure and use something like Wordfence to help detect flaws in your setup. There seems to be thousands if not millions of wordpress plugins available these days and sieving through the crowd is the aim of this post and ones like this. Hopefully it will help you find what your looking for and your on your way. Please feel free to reach out to the Angular and WordPress blogging communities for help if you get stuck, we’re here to help.

1. Angular2 WPTHEME


A WordPress theme that runs off of an Angular 2 app. To use this as a theme, you must have the WP REST API version 2 plugin installed.

First, run npm install.

Inside of src/index.html, you’ll need to change the base tag. . Change it to whatever you’ve named your theme directory on the server.

Inside of src/app/posts, open posts.service.ts. On the line where it says private postsUrl = “https://{YOUR_SITE_HERE}.com/wp-json/wp/v2/”;, just place in your site name.

After you’ve done that, run ng build from your command line. This will output a dist folder. Upload index.php, styles.css, functions.php, and the dist folder to your theme directory on your server. You should be good to go!

This project will play nice with the Angular CLI.

Code Article Demo

2. Angular2 WP Blog Example

angular2 wp blog example
angular2 wp blog example

Angular2 application using WordPress JSON-API backend. It can be served as WP theme or from a seperate static files server.

Code Demo

3. Social Auth Angular 2 with WordPress

Social Auth Angular 2 with WordPress
Social Auth Angular 2 with WordPress

Log in to your Angular 2 applications with WordPress or any other social or enterprise credential store. Includes user management, single sign on, API security, reporting and analytics, multifactor authentication and more.


4. Single Page Angular Bootstrap WordPress

Single Page Angular Bootstrap WordPress
Single Page Angular Bootstrap WordPress

WordPress theme using Angular.js and Bootstrap Frameworks.

Working with the Angular.js framework is fast and rewarding, and combined with WordPress it can make a really nice SPA (Single-page Application) in a short time-span. With all the CMS controls and plugins WordPress offers, this is a interesting short-cut.

Code Article

5. ionWordpress Ionic 2 & Angular 2

ionWordpress ionic 2 & angular 2
ionWordpress ionic 2 & angular 2

ionWordpress2 is a fully functional high performance app perfect for apps who need maps with different categories of locations. This starter is built with Angular 2, Ionic 2, Typescript and SASS to take advantage of the future web standards.


Latest Technologies Ionic 2 (RC 0) + Angular 2 (Final) with Typescript
Full WordPress Integration: Posts, Pages, Locations and your custom post types
Easy Configure App – just edit one file config.js and build app
Google Analytics Tracking
Beautiful Tutorial
App Rating
Share on Facebook, Twitter, WhatsApp, SMS or E-Mail
Link to Facebook App
In-App-Browser for external links
Beautiful, readable and maintainable Sourcecode
Powerful live customization
Icon and Splashscreen PSD templates with automatic generation of ALL ion sizes
Automatic compilation
WordPress WP API V2


6. Angular2 WordPress

angular2 wordpress
angular2 wordpress

Build a Mobile App for your WordPress-based business using Angular 2.
Angular2-Wordpress provides the following features:

Allows you to painlessly update the seed tasks of your already existing project.
Supports multiple Angular applications with shared codebase in a single instance of the seed.
Ready to go, statically typed build system using gulp for working with TypeScript.
Production and development builds.
Sample unit tests with Jasmine and Karma including code coverage via istanbul.
End-to-end tests with Protractor.
Development server with Livereload.
Following the best practices.
Manager of your type definitions using typings.
Has autoprefixer and css-lint support.

Code Npm

7. Angular2 Ionic WordPress

angular2 Ionic wordpress
angular2 Ionic wordpress

Set of Ionic2 components and Redux containers for WordPress.


8. Upgrading Your AngularJS Theme to Work with WP API V2

Upgrading Your AngularJS Theme To Work With WP API V2
Upgrading Your AngularJS Theme To Work With WP API V2

In this post you will find out how to upgrade the AngularJS WordPress theme to work with the latest WP API v2 (beta 4 at the time of this writing).

“To be honest I didn’t expect the WP API v2 would be so much different from the version 1. When I talked about upgrading the theme in some comments of my tutorials, I thought it just about updating the routes and that’s all. It turned out I was wrong and the mistakes I’ve made are pretty worthy of documenting. So here we go…”


9. Using Angular APP to Load WordPress Content via WP API

Using Angular APP to load WordPress content via WP API
Using Angular APP to load WordPress content via WP API

In This way the page load can be very fast and i’ve the chance to override almost every original behaviour simply by coding some AngularJS controller and views. I’ve found the WordPress theme programming not so easy and if you don’t know all the APIs, hard to learn. Using AngularJS as front-end, doesn’t require WordPress API knowledge and give you the possibility to manipulate your content as you like just using one of the best JavaScript front-end framework.


More to come, please leave a comment if you want to add one.

Other articles, resources and references:

Sam Deering

Sam Deering

Sam is a web developer, online entrepreneur and investor. In his spare time he enjoys coding, playing chess and sharing what he learns with others.

One thought on “10+ Angular 2 and WordPress Integrations Examples

  1. Hi Sam. It seems that WordPress with Angular is much further developed than Joomla with Angular.
    We have around 20 Joomla websites we would like to upgrade the the Angular platform. Should I rather redeveloped the Joomla Websites in WordPress and Angular on SQL – Azure Platform. We will need limited E-Commerce functionality (Less than 10 products). I am not a programmer and have been using Joomla for the past 10 years. What is your opinion?

Leave a Reply

Your email address will not be published. Required fields are marked *