-
Notifications
You must be signed in to change notification settings - Fork 106
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
Wizard step lazy loading #62
Comments
I'm not sure if this is a feature
If you know how to extend |
@adrianbenjuya @madoar But, I have to remove
is there any way to get rid of this ? |
The issue is the phase during which you "set" the condition which you pass to |
+1 |
@mustafakunwa @AbhijitMuke I haven't used this component for a long time, I just moved to Material's stepper |
I want to load may active stepper component once it is activated. In material stepper all load at once |
Not really a useful reply isn't it? |
使用*ngIf条件语句来进行延迟加载吧 ,如果加载后显示的步骤不对,可以使用wizard.goToStep(stepIndex);或者 wizard.goToNextStep() 进行控制 或者混合使用 this.onLoad = true; //这里是条件判断 当ajax数据返回后 onLoad置为true加载组件
this.wizard.goToStep(0);
setTimeout(() => {
this.wizard.goToNextStep();//这里用goToStep也可以
},0} |
+1 |
Same problem here, it would be nice to have this feature. |
This approach worked well for me
Example:
|
Hi, is there a way to lazy load components inside a
wizard-step
?For example, I have 2
wizard-step
each one with a custom component inside. The first time that the wizard shows in the screen, those 2 components call thengOnInit()
function. Instead I need the second component to initialize just when the user reaches the second step.Meanwhile I'm hadling this by using a
*ngIf
in every component with an index that stores the current step,but I believe this is a feature that must come with the wizard itself, isn't it?
The text was updated successfully, but these errors were encountered: