template-driven form in angular 8 code example Example: import form module in angular 8 import { FormsModule } from '@angular/forms';