Using basic validation with Expressions/Directives

Objectives

  • Write an Angular form
  • Display various form validation states using expressions

Instructions

Using this base repo, let's create a register form for a user. You should put the following fields in the form, and display the relevant errors if the validation fails.

username

Required field, a minimum of three characters, and a maximum of 20.

password

Required field, minimum length 8, no maximum length

email

Required email, should be a valid email (hint - use type="email")