Recently I started working with Angular, and I needed to create a multi-step form, first of all it was a mess to install it, but at the end there it is, but when I use it on my component it doesn,t have style at all, I searched in a lot of sites and videos, but everyone does the same I do. Any idea what is the problem?
This are my app.module.ts:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { DrawingsComponent } from './drawings/drawings.component';
import {HttpClientModule} from '@angular/common/http';
import {FormsModule} from '@angular/forms';
import { MatStepperModule } from '@angular/material/stepper';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { MatPseudoCheckboxModule } from '@angular/material/core';
@NgModule({
declarations: [
AppComponent,
HomeComponent,
DrawingsComponent
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
FormsModule,
MatStepperModule,
MatIconModule,
MatButtonModule,
MatPseudoCheckboxModule,
BrowserAnimationsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
This is my example:
<mat-horizontal-stepper>
<mat-step label="Step 1">
Content 1
</mat-step>
<mat-step label="Step 1">
Content 2
</mat-step>
</mat-horizontal-stepper>