angular2-wizard icon indicating copy to clipboard operation
angular2-wizard copied to clipboard

Not working locally

Open vishbal opened this issue 6 years ago • 2 comments

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">

vishbal avatar Mar 16 '18 18:03 vishbal

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)

vishbal avatar Mar 16 '18 20:03 vishbal

Even I am also facing same issue.

piyush303 avatar May 08 '18 08:05 piyush303