Binding private property in [(ngModel)]
问题 How to bind private property in Angular 4? export class newItem{ private id: number; private description: string; private insertDate: any; get getId() : number { return this.id; } set setId(name : number) { this.id = name; } get getDescription() : string { return this.description; } set setDescription(description : string) { this.description = description; } get getInsertDate() : string { return this.insertDate; } set setInsertDate(insertDate : string) { this.insertDate = insertDate; } Here