Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何将离子按钮与mat步进机配合使用_Angular_Ionic Framework_Angular Material Stepper - Fatal编程技术网

Angular 如何将离子按钮与mat步进机配合使用

Angular 如何将离子按钮与mat步进机配合使用,angular,ionic-framework,angular-material-stepper,Angular,Ionic Framework,Angular Material Stepper,我使用的是离子、角度8和@angular/material/stepper 我已经将样式应用于ion按钮标签(由购买的组件库提供)。我想在地图步进器中的“下一步”按钮中使用此样式设置 但是,如果我将(工作)按钮从 <button mat-button margin-top matStepperNext shape="round" button-round fill="outline">{{config.nextButton}}</button> {{config.nex

我使用的是离子、角度8和@angular/material/stepper

我已经将样式应用于ion按钮标签(由购买的组件库提供)。我想在地图步进器中的“下一步”按钮中使用此样式设置

但是,如果我将(工作)按钮从

<button mat-button margin-top matStepperNext shape="round" button-round fill="outline">{{config.nextButton}}</button>
{{config.nextButton}

{{config.nextButton}

步进电机不再用于推进步进电机。有没有一种简单的方法可以将matStepperNext指令应用于ion按钮标签?

我刚刚遇到了这个问题,下面是我的发现:

@angular/material/stepper/stepper button
指令的源代码中,该指令的选择器为
按钮[matStepperNext]
(用于“Next”按钮)。因此,我们不能简单地使用
离子按钮
并期望它在单击时向前或向后移动步进器:选择器不匹配

资料来源:


假设我有一个名为“mysteppernistance”的步进器,为了继续我的项目,我正在考虑创建一个监听器,当我们点击一个离子按钮时执行
mysteppernistance.next()
mysteppernistance.previous()

我刚刚遇到了这个问题,下面是我发现的:

@angular/material/stepper/stepper button
指令的源代码中,该指令的选择器为
按钮[matStepperNext]
(用于“Next”按钮)。因此,我们不能简单地使用
离子按钮
并期望它在单击时向前或向后移动步进器:选择器不匹配

资料来源:

假设我有一个叫做“mysteppernistance”的步进器,为了继续我的项目,我正在考虑创建一个监听器,当我们点击一个离子按钮时,它执行
mysteppernistance.next()
mysteppernistance.previous()

<ion-button mat-button margin-top matStepperNext shape="round" button-round fill="outline">{{config.nextButton}}</ion-button>