Angular is a TypeScript-based open-source web application framework.
Start collecting data in a matter of clicks.
Let Formspark take care of the servers, databases, and analytics.
Set up any form in seconds.
import { Component } from "@angular/core"; import { HttpClient } from "@angular/common/http"; import { FormBuilder, ReactiveFormsModule } from "@angular/forms"; const FORMSPARK_ACTION_URL = "https://submit-form.com/your-form-id"; @Component({ selector: "app-contact-form", standalone: true, imports: [ReactiveFormsModule], template: ` <form [formGroup]="form" (ngSubmit)="onSubmit()"> <textarea formControlName="message"></textarea> <button type="submit" [disabled]="form.disabled">Send</button> </form> `, }) export class ContactFormComponent { form = this.formBuilder.group({ message: "" }); constructor( private formBuilder: FormBuilder, private http: HttpClient, ) {} onSubmit() { this.form.disable(); this.http.post(FORMSPARK_ACTION_URL, this.form.value).subscribe({ complete: () => { this.form.enable(); this.form.reset(); }, }); } }