Skip to main content

Overview

This guide shows you how to integrate Joyfill Components into your Angular v17+ application.

Setup

Welcome to Joyfill! It’s easy to get started with a Joyfill Developer account and add powerful form and digital PDF capabilities to your product or service. Just follow the steps below and you’ll be up and running shortly.

Setup Steps

The steps below are the prerequisites you will need to accomplish before moving on to the rest of this guide.A couple of the steps below will be done in our Joyfill Manager. Step 1: Create Joyfill Account
  • To begin working with Joyfill, go to Joyfill’s Platform and create an account (jump to step 2 if you already have an account).
  • By creating an account you will add yourself as the first user to your newly created Joyfill Organization and be placed inside the Joyfill Manager.
Step 2: Generate Your userAccessToken
  • Once you’re inside the Joyfill Manager you will want to select from the top navigation bar Settings & Users -> Manager Users -> and click “Access Tokens” button next to your user.
  • Once the modal appears select “Add Access Token”. Copy and securely store your access token for later use.
Step 3: Create Your First Template Create your first template within the Joyfill Manager by going to the Template Library tab in the top navigation and click the “Add Template”. We recommended following this guide Create Your First Template when creating your first template. This makes it easy to experiment with the different parts of the Joyfill Platform easily. Step 4: Get your template identifier Inside the Joyfill Manager you will want to select from the top navigation bar Template Library and under your Templates table list within the column ID copy that for pasting into our example Angular guides.

Requirements

  • Angular v17+
  • Review SDK README

🚀 Quick Start

1. Install

Install the Joyfill Components package:
or

2. Usage

Create Joyfill Service

Create src/app/joyfill.service.ts:

Update App Component

Update src/app/app.component.ts: ❗️Important Note: ensure you use the full import path import { JoyDoc } from '@joyfill/components/dist/joyfill.min.js'. This will ensure proper angular support.

Typescript Configuration

We have added the properties below to the “compilerOptions” in the tsconfig.json file in order to support the Joyfill JS SDK.

Complete Project Structure

Complete Angular Example

app.component.ts

app.component.css

joyfill.service.ts

tsconfig.json

Common Configuration Options

The JoyDoc function accepts the following configuration options:

Try it yourself

If you’re looking for a full example project that shows many more of the Joyfill SDK capabilities and workflows then head over to our full example project and try it for yourself.

That’s it! 🎉

Your Angular v17+ application with Joyfill Components is now ready. The form will render with proper Angular dependency injection and lifecycle management.