This package provides a convenient way to embed DocuSeal into Angular apps. Sign documents and create document forms directly in your apps.
npm install @docuseal/angular
For detailed documentation, please click here.
Copy public DocuSeal form URL from https://docuseal.com and use it in the src
component prop:
import { Component } from '@angular/core';
import { DocusealFormComponent } from '@docuseal/angular';
@Component({
selector: 'app-root',
standalone: true,
imports: [DocusealFormComponent],
template: `
<div class="app">
<docuseal-form
src="https://docuseal.com/d/LEVGR9rhZYf86M"
email="signer@example.com">
</docuseal-form>
</div>
`
})
export class AppComponent {}
import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { DocusealBuilderComponent } from '@docuseal/angular';
@Component({
selector: 'app-root',
standalone: true,
imports: [DocusealBuilderComponent],
template: `
<div class="app">
<ng-container *ngIf="token">
<docuseal-builder [token]="token"></docuseal-builder>
</ng-container>
</div>
`
})
export class AppComponent implements OnInit {
token: string = ''
constructor(private http: HttpClient) {}
ngOnInit() {
this.http.post('/api/docuseal/builder_token', {}).subscribe((data: any) => {
this.token = data.token;
});
}
}
MIT