我使用Angular Material 2 Stepper设置了一个线性步进器。
我有不同组件(component-a,component-b,component-c)中的表单。在我的主容器组件(container-component)中,我希望有一个线性步进器,当其表单有效时,“步进”到每个组件。
是否有某种功能可以与步进器中的stepControl进行交互,使其正常工作?
我附上了步进器的文档和应用程序的StackBlitz版本。还有一个我正在使用的工作库的链接。
Material Stepper Component: https://material.angular.io/components/stepper/overview StackBlitz: https://stackblitz.com/edit/angular-material2-issue-mjmu9u?file=app/app.component.ts Github: https://github.com/sam11385
我有不同组件(component-a,component-b,component-c)中的表单。在我的主容器组件(container-component)中,我希望有一个线性步进器,当其表单有效时,“步进”到每个组件。
是否有某种功能可以与步进器中的stepControl进行交互,使其正常工作?
我附上了步进器的文档和应用程序的StackBlitz版本。还有一个我正在使用的工作库的链接。
Material Stepper Component: https://material.angular.io/components/stepper/overview StackBlitz: https://stackblitz.com/edit/angular-material2-issue-mjmu9u?file=app/app.component.ts Github: https://github.com/sam11385
ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: '[object Object]'。
- vigamage