Angular Material "md" vs "mat" Prefix
Asked on August 12, 2018
What is difference between Angular Material md and mat prefix?
Replied on August 12, 2018
1. md prefix is used in AngularJS Material and mat prefix is used in Angular Material.
Sample Button in AngularJS Material:
<md-button class="md-primary">Click me</md-button>
Sample Button in Angular Material:
<button mat-button>Click me!</button>
2. Initially Angular Material supported both prefix md and mat but in Angular material 2.0.0-beta.11, Angular has deprecated md prefix.
3. In Angular Material 2.0.0-beta.12, All md prefixes have been removed.
4. We can find the reason to remove md prefix from Angular Material CHANGELOG.
Reason to Remove md prefix (Taken from Angular Material CHANGELOG):