欢迎各位兄弟 发布技术文章
这里的技术是共享的
This was a breaking change in the latest Material release:
You should make those changes to avoid the error you're seeing. |
Yeah either the a toolbar with multiple <mat-toolbar-row> elements. 正确答案 <mat-toolbar>
<mat-toolbar-row>First Row</mat-toolbar-row>
<mat-toolbar-row>Second Row</mat-toolbar-row>
</mat-toolbar> or a <mat-toolbar>Single Row</mat-toolbar>
<!-- OR -->
<mat-toolbar>
<mat-toolbar-row>Single Row</mat-toolbar-row>
</mat-toolbar> |
Thanks @devversion |
KKHAN1991 commented on 13 Nov 2017
Bug, feature request, or proposal:
After upgrading from angular 4 to angular 5. I am getting the following error message:
ERROR Error: MatToolbar: Attempting to combine different toolbar modes. Either specify multiple
<mat-toolbar-row>
elements explicitly or just place content inside of a<mat-toolbar>
for a single row.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5, material 5.
Is there anything else we should know?
It is referring to the following code.