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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

core.js:4002 ERROR Error: Uncaught (in promise): Error: Template parse errors: There is no directive with "exportAs" set to "ngModel" ("sername" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" [(ngModel)]="logindata.username" [ERROR ->]#username="ngModel" required [class.is-invalid]="(username.invalid && username.touched) || (u"): ng:///AccountroutingModule/LoginComponent.html@17:41 Can't bind to 'ngModel' since it isn't a known property of 'input'. (" class="in" id="username" name="username" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" [ERROR ->][(ngModel)]="logindata.username" #username="ngModel" required [class.is-invalid]="(username.i"): #34174

Closed
krishnakanajam opened this issue Dec 2, 2019 · 1 comment

Comments

@krishnakanajam
Copy link

@krishnakanajam krishnakanajam commented Dec 2, 2019

馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃

Please help us process issues more efficiently by filing an
issue using one of the following templates:

https://github.com/angular/angular/issues/new/choose

Thank you!

馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃馃洃

@krishnakanajam krishnakanajam changed the title i am getting same kind of error core.js:4002 ERROR Error: Uncaught (in promise): Error: Template parse errors: There is no directive with "exportAs" set to "ngModel" ("sername" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" [(ngModel)]="logindata.username" [ERROR ->]#username="ngModel" required [class.is-invalid]="(username.invalid && username.touched) || (u"): ng:///AccountroutingModule/LoginComponent.html@17:41 Can't bind to 'ngModel' since it isn't a known property of 'input'. (" class="in" id="username" name="username" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" [ERROR ->][(ngModel)]="logindata.username" #username="ngModel" required [class.is-invalid]="(username.i"): Dec 2, 2019
@krishnakanajam

This comment has been minimized.

Copy link
Author

@krishnakanajam krishnakanajam commented Dec 2, 2019

here i used this code,, i thing everything written is correct i didn't find any wrong in this code but still it is showing this error ,, HELP ME TO RESOLVE THIS ERROR

<input type="email" class="in" id="username" name="username" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,3}$"
[(ngModel)]="logindata.username" #username="ngModel" required
[class.is-invalid]="(username.invalid && username.touched) || (username.invalid && loginform.submitted)">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can鈥檛 perform that action at this time.