1

How to change material angular to last old version where we used md instead mat?

Now I have "@angular/material": '^2.0.0-beta.8'

POV
  • 11,293
  • 34
  • 107
  • 201

1 Answers1

6

The latest version, where used md - 2.0.0-beta.11.

Quote from changelog:

For beta.11, we've made the decision to deprecate the "md" prefix completely and use "mat" moving forward. This affects all class names, properties, inputs, outputs, and selectors (CSS classes were changed back in February). The "md" prefixes will be removed in the next beta release.

To change the version, use the following commands:

npm uninstall --save @angular/material
npm uninstall --save @angular/cdk
npm install --save-exact @angular/material@2.0.0-beta.11
npm install --save-exact @angular/cdk@2.0.0-beta.11
progm
  • 2,782
  • 3
  • 14
  • 32