>

CODEMASTERYLAB

IDE PLATFORM
CoursesCommunity BlogsKnowledge GraphQuizzesInterview Prep

Sign in to track progress & earn XP

Sign In Create Account
>
Code Mastery Lab

Code Mastery Lab

Sign In

Reactive Forms — Modeling Forms as Data Structures

Question 1 / 1

0:00
Core
Medium

A reactive form has a price control with Validators.required and Validators.min(0). The user types -5 into the field and tabs away. Which statements about the control's state are true?

typescript this.productForm = this.fb.group({ price: ['', [Validators.required, Validators.min(0)]] });

html <input type="number" formControlName="price">