maiyaporn / angular2-wizard

Angular2 - Form Wizard Component
118 stars 119 forks source link

How can handle if I have child form navigation #40

Open mullamohiddin opened 6 years ago

mullamohiddin commented 6 years ago

How can I handle if i have child form navigations Ex: Step1 have step1(a) and step1(b) navigations, But My active step should be step1 only. Please advice me

Agonzit commented 6 years ago

Perhaps you could try to add another wizard inside it, you'd have to assign a viewChild variable to it so you could control it from your component, something like


//HTML
<form-wizard #wizardchild>
//Component
@ViewChild('wizardchild') private child: FormWizard;
//then call methods like such
child.onNext();