Angular Material Stepper not working on StackBlitz

柔情痞子 提交于 2019-12-13 03:47:06

问题


I'm working on an idea to create a quiz primarily using the Angular Material Stepper. I have the concept working on my localhost but I'd like to put it on StackBlitz so I can easily share the concept with coworkers with just a link.

I've followed all the steps

npm install --save @angular/material @angular/cdk

npm install --save @angular/animations

Import the NgModule for each component you want to use:

Include a theme

Gesture Support

And I'm still seeing a blank screen when I try to use

<mat-horizontal-stepper>

My full source can be viewed here

What exactly am I doing wrong? This works on my local machine.


回答1:


Seems that updating your dependencies solves the issue.

In your screenshot of the dependencies, there's a refresh icon and when clicked, updates your dependencies.

Updated demo



来源:https://stackoverflow.com/questions/50990209/angular-material-stepper-not-working-on-stackblitz

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!