Build a form using Angular's ReactiveForms approach with the following structure:
- Name
- Birthdate
- Phone
- Tax number
- Submit button
Every field should use native input elements and are required.
The "Email" field only accepts valid emails.
The "Birthdate" field does not accept dates in the futures.
The "Phone" field only accepts 9 digit numbers.
The "Tax number" field only accepts valid portuguese Individual Identification Number (Número de Identificação Fiscal (NIF) )
When submitting, the fields with invalid values should appear with a red background.
If all fields are valid, the page should refresh.
The exercise uses Bootstrap 5.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.