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.
- 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.
Requirements
- Angular v17+
- Review SDK README
🚀 Quick Start
1. Install
Install the Joyfill Components package:2. Usage
Create Joyfill Service
Createsrc/app/joyfill.service.ts:
Update App Component
Updatesrc/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 thetsconfig.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
TheJoyDoc function accepts the following configuration options: