Angular Material Stepper not working on StackBlitz

2019-08-17 07:26发布

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

NPM Packages

Import the NgModule for each component you want to use:

Module Imports

Include a theme

Theme Import

Gesture Support

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条回答
手持菜刀,她持情操
2楼-- · 2019-08-17 08:06

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

查看更多
登录 后发表回答