ngModel is an Angular directive that keeps a form control and a component property synchronized through two-way binding. In a standalone component, import FormsModule through the component metadata before using it. section 2.3.1
Standalone login form
Bind the email and password inputs to credentials.email and credentials.password with [(ngModel)]. Add FormsModule to imports; the component can then update its credentials object as users enter values.
The pattern fits a practical login component: required-field feedback can inspect the synchronized credentials, while a submit handler can pass them to an authentication service.

