Description
RROR TypeError: Cannot read property 'Name' of undefined
at Object.eval [as updateDirectives] (AddTestDataComponent.ngfactory.js:121)
at Object.updateDirectives (core.js:10590)
at checkAndUpdateView (core.js:10243)
at callViewAction (core.js:10484)
at execComponentViewsAction (core.js:10426)
at checkAndUpdateView (core.js:10249)
at callViewAction (core.js:10484)
at execComponentViewsAction (core.js:10426)
at Object.checkAndUpdateView (core.js:10249)
at ViewRef_.push../node_modules/@angular/core/fesm5/core.js.ViewRef_.detectChanges (core.js:8630)
This error occured when Binding Input (Type =Text) with class property Name.
<input type="text" name="Name" #Name="ngModel" [(ngModel)]="TodoClass.Name">
ToDoClass
export class TodoClass {
Name:string;
IsComplete:boolean;
}