.ts
import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms';
.html
<input [(ngModel)]="userForm.username">