Material angular, md vs mat, @ angular / material@2.0.0-beta.11 template analysis errors

I just updated angular material via NPM (@ angular / material@2.0.0-beta.11-53c42a4 )

Now my applications no longer work because there are differences in syntax. I look through the documents, what has changed, but there is little information about these problems.
I tried to replace all

import {Md ** Module, etc.} from "@ angular / material"
with
import {Mat ** Module} from "@ angular / material" in the app.module file .

I still have template parsing errors. An example of the many mistakes that I have

My question is: where can I solve this problem?

I planned:
1) Change all the modules Md ** import → Mat **
2) Try the trial version and change all the HTML tags


Update: Through trial and error, I decided to partially resolve this issue. I have done the following:
  • change all import {Md ** Module, etc.} from "@ angular / material" to
    import {Mat ** Module, etc.} from "@ angular / material"
  • Go through all the * .html components files and change the HTML tags.
     <md-expansion-panel></md-expansion-panel> <md-select><md-option></md-option></md-select>... etc
     in the
     <mat-expansion-panel></mat-expansion-panel> <mat-select><mat-option></mat-option></mat-select> ...etc.
    prefix mdchanged to mat. I think there is no easy way to solve this problem.
+6
source share

All Articles