You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently migrated to Angular 6 and when AOT-compiling a lazy-loaded module which imports ArchwizardModule, the dependecy injection fails, meaning:
@ViewChild(WizardComponent) public wizard: WizardComponent;
and then calling
this.wizard.navigation.goToNextStep();
it fails because this.wizard is undefined.
I usually use this to programmatically change the step of the wizard.
Nonetheless, if I use the more simple approach with awNextStep directive, it works as expected.
Thanks in advance for your insights!
The text was updated successfully, but these errors were encountered:
The issue seems to be that @ViewChild doesn't seem to do its job in this case as intended.
Can you check, if @ViewChild works, when used with other libraries?
I recently migrated to Angular 6 and when AOT-compiling a lazy-loaded module which imports ArchwizardModule, the dependecy injection fails, meaning:
@ViewChild(WizardComponent) public wizard: WizardComponent;
and then calling
this.wizard.navigation.goToNextStep();
it fails because this.wizard is undefined.
I usually use this to programmatically change the step of the wizard.
Nonetheless, if I use the more simple approach with awNextStep directive, it works as expected.
Thanks in advance for your insights!
The text was updated successfully, but these errors were encountered: