Intuitive admin interface
So easy to use. So easy to customize. You’re going to love the content you build better with ButterCMS.
Handy integration with Angular.js
Our Angular CMS has a simple content API and drop-in Angular SDK that makes the magic happen in minutes, not hours.
A truly zero-maintenance solution
With ButterCMS, you’ll never worry about security upgrades, hosting, or performance again.
Powerful CMS for Angular. Zero headache.
Drop our API-based CMS into your Angular app in minutes.
ButterCMS provides a component-based CMS and content API for Angular and Angular.js apps. Use ButterCMS to enable dynamic content in your apps for page content, blogs, and anything else. Most customers get our Angular CMS set up in one hour or less.
That leaves plenty of time for you and your marketing team to do what you do best: create killer apps with killer content.
See how Butter’s API enables you to compose flexible page layouts and easily reorder components, without a developer.
“Best CMS on the market”
After shopping the market, it was clear that ButterCMS was the perfect choice. It allows our developers to build powerful components and makes it easy for our marketing team to drive a better customer experience. Hampton Catlin Creator of Sass and Haml
Deploy our Angular Starter in 30 Seconds
Or follow the below commands to clone a copy of the repo from github, install dependencies, set your free Butter token, and run your local server on localhost:4200/.
$ git clone https://github.com/ButterCMS/angular-starter-buttercms
$ cd angular-starter-buttercms
$ npm install
$ echo 'NG_APP_ANGULAR_BUTTER_CMS_API_KEY=' >> .env
$ npm run start
Built to make content marketing easy
ButterCMS is the best headless cms for Angular for a simple reason: Angular developers can build solutions that marketing people love. Our API allows your content gurus to quickly spin up high-converting, dynamic landing pages, SEO pages, product marketing pages, and more, all using simple drag-and-drop functionality.
The simplest Angular CMS you'll find
Our simple setup saves you time and money. Take us for a spin to see for yourself!
It's the epitome of plug-and-play simplicity for content creators. It does exactly what I need it to. LUKE GARDNER, CONTENT SPECIALIST, PRINTAVO
Fast integration with any Angular app
Our mission was to make it easy to integrate Butter with your existing Angular app in minutes. It’s so simple! To demonstrate, here’s a mini tutorial to give you a feel for the process of adding marketing pages to your Angular or Angular.js app.
Of course, you can also use our Collections to do advanced content modeling. For a full integration guide, check out our Official Guide for the ButterCMS Angular API client.
See how easily you can integrate the ButterCMS Pages API with your Angular.js app.
Seamless Angular components
Empower your marketing team with dynamic landing pages that align perfectly with your Angular components.
Components are the essential building blocks of any Angular app, and ButterCMS handles them with ease.
Our drag and drop interface makes it simple to structure your content to match existing Angular components and to create new reusable components whenever you need them.
One Angular CMS with everything you need
There’s a reason so many developers are choosing a headless Angular CMS. It’s easy to set up, offers flexible, customizable content modeling, and gives you access to our full Angular API.
ButterCMS saves you development time
Most customers get our Angular CMS up and running in less than an hour. Try it yourself!
Simple as can be, with powerful features and great customer support. DILLON BURNS, FRONT END DEVELOPER, KEYME
How to integrate ButterCMS into your Angular application
Just follow the simple steps below to complete the integration and begin creating pages with Butter. Be sure to check out our full guide to creating pages using the ButterCMS Angular API.
1. First you would set up a new Customer Case Study page type in Butter and create a page. With your page defined, the ButterCMS API will return it in JSON format like this:
{
"data": {
"slug": "acme-co",
"fields": {
"facebook_open_graph_title": "Acme Co loves ButterCMS",
"seo_title": "Acme Co Customer Case Study",
"headline": "Acme Co saved 200% on Anvil costs with ButterCMS",
"testimonial": "<p>We've been able to make anvils faster than ever before! - <em>Chief Anvil Maker</em></p>\r\n<p><img src=\"https://cdn.buttercms.com/NiA3IIP3Ssurz5eNJ15a\" alt=\"\" caption=\"false\" width=\"249\" height=\"249\" /></p>",
"customer_logo": "https://cdn.buttercms.com/c8oSTGcwQDC5I58km5WV",
}
}
}
2. To integrate this into your app, create new project
ng new buttercms-project
cd buttercms-project
npm install --save @angular/material @angular/cdk
npm install --save @angular/animations
npm install -S buttercms
ng serve
3. Create typescript to export ButterCMS service:
Under src/app create a directory called services
. Create a file called butterCMS.service.ts
.
import Butter from 'buttercms';
export const butterService = Butter('your_api_token');
4. Inside services directory create file called index.ts
to be able to import butterCMS.service into any component we want to use ButterCMS.
export * from './butterCMS.service';
5. Update the component routes:
These components are generated by angular cli using ng g component <my-new-component>
Under src/app create a file called app-routing.module.ts
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {HomeComponent} from './home/home.component';
const appRoutes: Routes = [
{path: 'home', component: HomeComponent},
{path: '**', redirectTo: 'home'}
];
@NgModule({
imports: [RouterModule.forRoot(appRoutes)],
exports: [RouterModule]
})
export class AppRoutingModule {
}
6. Under apps/home type ng g component home
apps/home/home/home.component.ts
import {Component, OnInit} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {ActivatedRoute} from '@angular/router';
import {butterService} from '../../services';
import {map, take} from 'rxjs/operators';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
constructor(protected route: ActivatedRoute) { }
public page: any;
ngOnInit() {
butterService.page.retrieve('*', 'homepage')
.then((res) => {
this.page = res.data.data;
}).catch((res) => {
console.log(res);
});
}
}
7. Display the results in home.component.html
<mat-card>
<div class="container">
<div fxLayout="column" class="details">
<div class="blocks">
<img src="{{page.fields.hero_image}}" "/>
</div>
<h1 class="blocks">
{{page.fields.headline}}
</h1>
<button>{{page.fields.call_to_action}}</button>
<h3>Customers Love Us!</h3>
{{page.fields.customer_logos}}
</div>
</div>
</mat-card>
That's it! If you browse to your homepage you'll see your homepage populated with the content you created in Butter.
Test Drive Our APIBenefits of Going Headless with Angular
Angular is widely used in modern web development, and headless architectures are no exception. Here’s why going headless with Angular is a smart choice:
A well-designed component architecture
Angular's component-based architecture makes it easy to create modular and reusable components. This fits perfectly with headless setups where data is delivered via content APIs and can be displayed using these components. The outcome is a clean, maintainable, and scalable codebase that’s conducive to rapid changes.
Large library ecosystem and mature community
With Angular, you have access to a vast ecosystem of libraries and frameworks. There are numerous solutions for state management, data fetching, and UI component libraries specifically designed for headless architectures. Moreover, if you run into any issues while building your headless app, you can always reach out to the mature Angular community for support or helpful resources.
Supports modern web application paradigms
Angular is continuously updated to remain a leading framework for building modern web applications, including Progressive Web Apps (PWAs), Single Page Applications (SPAs), and micro frontends. By combining it with an Angular CMS, developers can create engaging omnichannel experiences that meet the evolving needs of modern consumers.
Improved performance and scalability
Headless architectures separate the frontend and backend, which enables independent scaling for each layer. Angular's focus on performance optimization complements this well. Developers can leverage lazy loading and server-side rendering techniques to build a headless-powered Angular application that delivers fast loading times and a smooth user experience, even with large amounts of content.
Scalability and flexibility
Angular's scalable architecture is ideal for growing applications. In a headless CMS setup, when content and user interactions increase exponentially, Angular ensures that your application remains responsive and manageable. Its modularity allows for painless updates and expansions.
What makes ButterCMS the ideal choice for Angular apps?
ButterCMS is an API-first, enterprise-ready headless CMS that works well with all Angular applications, regardless of size or nature. Let’s explore some reasons why ButterCMS is one of the best headless CMSs for Angular:
ButterCMS and Angular components blend perfectly
Angular's component-based architecture lets you build sleek, responsive interfaces for even the most complex web applications. These components can be easily integrated with ButterCMS's drag-and-drop components, which marketers use to design dynamic page layouts . With this powerful duo, you can develop lightning-fast, scalable, and flexible applications that deliver a frictionless user experience across all channels and devices.
It echoes Angular’s developer-friendliness
Angular’s CLI and development tools streamline the frontend development process. Similarly, the webhooks, API explorer, one-click migrations, client libraries, extensive content API documentation, and starter kits offered by ButterCMS simplify the headless API integration with Angular apps.
ButterCMS is enterprise-ready
ButterCMS is a cloud-based, fully managed Angular CMS that provides a plethora of enterprise-grade features, including multi-site and multi-environment management, single sign-on (SSO), secure and scalable hosting on ISO-27001-compliant AWS data centers, automatic daily backups, and a reliable CDN (Content Delivery Network).
What is the future of Angular?
Angular is expected to continue its upward trajectory in the web development domain, driven by exciting trends and advancements. Here are the top Angular trends to watch out for:
Increased focus on server-side rendering (SSR)
Server-side rendering (SSR) has become imperative for better web performance and SEO. Angular's ongoing efforts to enhance SSR capabilities will make it even more effective in delivering fast, search-engine-friendly applications. This aligns perfectly with the needs of headless and API-first architectures, where performance and visibility are crucial.
Emphasis on micro frontends
The micro frontend architecture is gaining traction as a way to build scalable and maintainable web applications. As this trend continues, more development teams will harness Angular's support for micro-frontends to break down monolithic applications into independent, modular components. This will be ideal for composable setups where modularity and flexibility are paramount.
Increased use of WebAssembly
WebAssembly (Wasm) is becoming an important technology for running high-performance applications in the browser. In the future, Angular's support for WebAssembly is expected to grow, allowing developers to seamlessly use languages like C++ or Java to write more performant web application code.
Artificial intelligence (AI) and machine learning (ML) integrations
Artificial intelligence and machine learning are becoming increasingly accessible to developers. The future of Angular likely holds a proliferation of built-in modules and third-party libraries that make it a breeze to integrate AI and ML capabilities into your web applications. This integration will empower developers of headless architectures to create next-generation web experiences with features like intelligent content recommendations or hyper-personalized user interfaces.