Search⌘ K

Form Controls: Select & Checkbox

Explore how to add select components that support multiple selections and tristate checkboxes using Angular Material. This lesson guides you through importing necessary modules, updating component classes, and embedding form controls to efficiently handle user input for product categories and options.

We'll cover the following...

We’ll learn how to add a select component in the form to select multiple product categories.

The select component

The select component works similarly to the native <select> element defined in the HTML standard. It displays a drop-down element with a list of options that users can choose. It allows selecting only one option at a time by default, but it can also be configured for multiple selections, as we will see in this example. ...