Template: <input [(ngModel)]="name"> <p>Value:{{ name }}</p> export class BasicNgModel { name: string = ''; }