angular2-wizard
angular2-wizard copied to clipboard
Not working locally
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">
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)
Even I am also facing same issue.