Skip to main content

Overview

This integration guide shows you how to how to update your existing project to:
  1. install the ButterCMS package
  2. instantiate ButterCMS
  3. create components to fetch and display each of the three ButterCMS content types: Pages, Collections, and Blog Posts.
In order for the snippets to work, you’ll need to setup your dashboard content schemas inside of ButterCMS first.

Installation

Add your API token to environment.ts:

Initialize the client

Create an Angular service to wrap the ButterCMS SDK:
For complete SDK documentation including all available methods and configuration options, see the JavaScript SDK Reference.

Pages

Register the route in your app module:

Collections

Dynamic components

Component registry

Example Component

Blog

Resources

JavaScript SDK

Complete SDK reference

GitHub Repository

View source code

Content API

REST API documentation