Problem Statement
Explain two-way data binding and how you enable it.
Explanation
Two-way binding keeps a form control and a component property in sync. Use the banana-in-a-box `[(ngModel)]` for template forms (import FormsModule) or bind FormControl in reactive forms. When the user types, the component value updates; when component value changes, the view reflects it instantly.
Code Solution
SolutionRead Only
<input [(ngModel)]="name" placeholder="Your name" />
<p>Hello {{ name }}</p>