Menu

React, etc. Tech Stack

React, Flux, GraphQL, Hack, HHVM...? All of this and more!

Angular 2 is a great choice for decoupling with a headless CMS

Headless CMSes have been a hot topic for a number of years. In addition to pure platforms that offer a content API, there are also numerous CMSes with a public API that can be used to power a rich front end application.

Angular is a popular framework that was launched way back in 2010. Since that time there has been a large number of alternatives like Vue and React, but Angular continues to be a mainstream brand. And traditionally many CMSes like Umbraco already used Angular 1.x for many years.

But after years of development, the second iteration of Angular is about to come out. Angular 2 is a major rewrite of the framework, with a transition path from the first versions to the new generation. There are, however many new headless CMS projects that will be done using this new brave world of Angular 2 directly.

For decoupled headless CMS implementation projects Angular 2 is a great choice. Unlike React.js, Angular 2 is a complete framework. So if your ultimate goal is to provide fluent content experiences for developers with maximum efficiency, then this kind of an integrated solution is optimal.

Angular 1.x was also a complete framework, but it had some downsides like performance issues and  not being able to be rendered on the server side. In Angular 2 performance has been a primary goal from day one and it will be plenty fast for decoupled CMS projects.

In addition the support for server side rendering with Angular Universal is essential for content driven sites that need to rank well in search engine rankings. Unlike most JavaScript solutions, the Angular 2 team is working together with PHP and other technologies to enable server side Angular 2 rendering in Twig templates.

Together with the rising popularity of GraphQL and data abstractions like Apollo for many JavaScript solutions, the future of building a decoupled CMS experiences with Angular 2 looks good.

Written by Jorgé on Sunday June 19, 2016

Permalink -

« Directus, an Open Source Headless CMS written in PHP - Dgraph is a next generation Graph Database with GraphQL as the query language »