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

Not working locally #48

Open
vishbal opened this issue Mar 16, 2018 · 2 comments
Open

Not working locally #48

vishbal opened this issue Mar 16, 2018 · 2 comments

Comments

@vishbal
Copy link

vishbal commented Mar 16, 2018

I have installed using npm and referred on Appmodule as advised. Later I just copied the HTML to AppComponent and it is giving below console error:

There is no directive with "exportAs" set to "ngForm" ("ep1'" [isValid]="emailForm.form.valid" (onNext)="onStep1Next($event)">

Step1


<form [ERROR ->]#emailForm="ngForm">

Email add"): ng:///AppModule/AppComponent.html@4:10
Can't bind to 'ngModel' since it isn't a known property of 'input'. ("tEmail1" name="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"
[ERROR ->][(ngModel)]="data.email" required>
We'll n"): ng:///AppModule/AppComponent.html@8:10
at syntaxError (compiler.js:485)
at TemplateParser.parse (compiler.js:24668)
at JitCompiler._parseTemplate (compiler.js:34621)
at JitCompiler._compileTemplate (compiler.js:34596)
at eval (compiler.js:34497)
at Set.forEach ()
at JitCompiler._compileComponents (compiler.js:34497)
at eval (compiler.js:34367)
at Object.then (compiler.js:474)
at JitCompiler._compileModuleAndComponents (compiler.js:34366)

@vishbal
Copy link
Author

vishbal commented Mar 16, 2018

Update: I imported FormsModule in Appmodule and removed the [(ngModel)] binding in appcomponent. Now the previous error has gone away and was able to see the form.

But after clicking on Next button I see Console error :

ERROR TypeError: _co.onStep2Next is not a function
at Object.eval [as handleEvent] (AppComponent.html:14)
at handleEvent (core.js:13547)
at callWithDebugContext (core.js:15056)
at Object.debugHandleEvent [as handleEvent] (core.js:14643)
at dispatchEvent (core.js:9962)
at eval (core.js:12301)
at SafeSubscriber.schedulerFn [as _next] (core.js:4343)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:240)
at SafeSubscriber.next (Subscriber.js:187)
at Subscriber._next (Subscriber.js:128)

@piyush303
Copy link

Even I am also facing same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants