我正在使用步进器,我想禁用下一步,直到所有填充都应该填充,所以我在html文件中线性化为true
<mat-horizontal-stepper [linear]="true" #stepper>
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
Run Code Online (Sandbox Code Playgroud)
它工作正常但每当我要进入下一步时,"1"在我检查时变成"cre"
我没有用户在我的代码中创建它来自mat-icon
我正在尝试在 ionic 应用程序中添加侧边菜单,但它没有来,我正在附上所有文件,请帮帮我!!
app.html 文件
<ion-menu [content]="mycontent">
<ion-header>
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<button ion-item (click)=o nLoad(ServicesMessPage)>
<ion-icon name="quote" item-left></ion-icon>
Mess
</button>
<button ion-item (click)=o nLoad(ServicesLaundryPage)>
<ion-icon name="quote" item-left></ion-icon>
Laundry
</button>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav [root]="rootPage" #mycontent></ion-nav>
Run Code Online (Sandbox Code Playgroud)
然后在 app.component.ts 我添加了所有必要的导入
app.component.ts 文件
import { Component, ViewChild } from '@angular/core';
import { Platform, NavController, MenuController } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { LoginPage } from '../pages/login/login';
@Component({
templateUrl: 'app.html'
}) …Run Code Online (Sandbox Code Playgroud)