<input [ngModel]="object?.x" (ngModelChange)="object.x=$event"/>
<div *ngIf="x"> <input [(ngModel)]="x"/> </div>