SitePoint
Premium
Library
Community
Jobs
Tools
Tutorials
Blog
Login
Start Free Trial
Creating a Real-World Angular 2 App: Building a Form
Content
1
Creating a Form in Angular 2
Creating the Bug Detail Form
Styling the Bug Detail Form
Creating the Form Model (Reactive Forms/Model Driven Forms)
Binding the Form Model to the Template
Submitting the Reactive Form
Using Validators for Form Validation
Introduction to Form and FormControl States
Creating a Custom Validator
Applying a Custom Validator (Reactive Form / Model Driven Form)
Applying Validation Styling
Creating Reactive Forms Using the FormBuilder
Creating the Add Bug TypeScript Method
Using the Add Bug TypeScript Method
Resetting the Form on Submit
Passing an Existing Bug into the Form