Angular Material Stepper在StackBlitz上不起作用 [英] Angular Material Stepper not working on StackBlitz

查看:123
本文介绍了Angular Material Stepper在StackBlitz上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一种主要使用 Angular Material Stepper 来创建测验的想法.一个>.我有在本地主机上运行的概念,但我想将其放在 StackBlitz 上,这样我就可以轻松共享该概念与同事只是一个链接.

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-保存@ angular/material @ angular/cdk

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

npm install --save @ angular/animations

npm install --save @angular/animations

为要使用的每个组件导入NgModule:

Import the NgModule for each component you want to use:

包含主题

手势支持

当我尝试使用

<mat-horizontal-stepper>

我的完整资料可以在此处查看

我到底在做什么错?这适用于我的本地计算机.

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.

更新了演示

这篇关于Angular Material Stepper在StackBlitz上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆