default
:app.routes
:/login
and the /cms
routes:username
and password
, with basic validation ensuring both fields are filled before submission.LoginComponent
uses Angular's FormBuilder
to construct the form.username
and password
are keys in the form group, each mapped to a FormControl
instance with an empty initial value and a required validator.formControlName
directive).