角度材料步进器不适用于 StackBlitz [英] Angular Material Stepper not working on StackBlitz
问题描述
我正在研究一个想法,主要使用
<块引用>为您要使用的每个组件导入 NgModule:
<块引用>添加主题
<块引用>手势支持
当我尝试使用时,我仍然看到一个空白屏幕
我的完整来源可以在这里查看
我到底做错了什么?这适用于我的本地机器.
似乎更新您的依赖项可以解决问题.
在您的依赖项屏幕截图中,有一个刷新图标,点击后会更新您的依赖项.
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.
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.
这篇关于角度材料步进器不适用于 StackBlitz的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!