Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR TypeError: Cannot read property 'Name' of undefined at Object.eval [as updateDirectives]. #11607

Closed
programmerskill opened this issue Jul 20, 2018 · 5 comments

Comments

@programmerskill
Copy link

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;
}

@alan-agius4
Copy link
Collaborator

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular. More your request doesn't fall under to Angular CLI project.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

@filipesilva
Copy link
Contributor

Closing as per @alan-agius4's comment, thanks!

@programmerskill
Copy link
Author

Thanks for your response... I will take care...

@Aditya4chiku
Copy link

try to write
([ngModel])=Todoclass ?.Name

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants