Reader small image

You're reading from  Next-Level UI Development with PrimeNG

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781803249810
Edition1st Edition
Right arrow
Author (1)
Dale Nguyen
Dale Nguyen
author image
Dale Nguyen

Dale Nguyen is a skilled full-stack developer with a passion for technology. With years of experience in the industry, he has made significant contributions to agencies, education, finance, and travel sectors. Drawing from years of professional experience, Dale's expertise lies in Angular development. His dedication to staying updated with the latest advancements in Angular allows him to consistently deliver exceptional results. Proficient in multiple programming languages and tools, Dale is known for his ability to handle complex projects, with his advanced skills making him an invaluable asset to his employers and colleagues.
Read more about Dale Nguyen

Right arrow

Introducing input components and form controls

Before getting into the main content of this chapter, let’s set the stage with an overview of input components and form controls. Angular provides two ways to handle user inputs through forms: template-driven and reactive forms. Both methods have their unique strengths, and choosing between them depends on the specific needs of your application.

Let’s have a look at a simple Angular form:

Figure 5.1 – Angular sample form

Figure 5.1 – Angular sample form

We will use both approaches to recreate this form.

Template-driven forms

Template-driven forms define controls directly within the DOM and then link them back to the underlying model. They shine in their simplicity, making them a go-to choice for straightforward use cases. For instance, when dealing with a form that has a small number of fields and uncomplicated validation rules, template-driven forms offer a rapid and effortless approach to implementing form...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Next-Level UI Development with PrimeNG
Published in: Mar 2024Publisher: PacktISBN-13: 9781803249810

Author (1)

author image
Dale Nguyen

Dale Nguyen is a skilled full-stack developer with a passion for technology. With years of experience in the industry, he has made significant contributions to agencies, education, finance, and travel sectors. Drawing from years of professional experience, Dale's expertise lies in Angular development. His dedication to staying updated with the latest advancements in Angular allows him to consistently deliver exceptional results. Proficient in multiple programming languages and tools, Dale is known for his ability to handle complex projects, with his advanced skills making him an invaluable asset to his employers and colleagues.
Read more about Dale Nguyen