Angular - Template-Driven Forms
What is wrong with this code snippet?
Component:
<input [(ngModel)]="email">
Component:
export class UserComponent {
email: string;
}<input [(ngModel)]="email">
export class UserComponent {
email: string;
}ngModel requires importing FormsModule in the module where this component is declared.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions