components icon indicating copy to clipboard operation
components copied to clipboard

Do I have to every mdMenu to matMenu, because md is missing everything and no changlog.

Open p3x-robot opened this issue 9 years ago • 10 comments

Bug, feature request, or proposal:

The latest release is missing the md prefix, do I have to remove everything to mat perfix?

What is the expected behavior?

md prefix missing.

What is the current behavior?

Build errror.

What are the steps to reproduce?

md directive missing, everything looks like mat.

What is the use-case or motivation for changing an existing behavior?

Work it.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

^2.0.0-beta.12

Is there anything else we should know?

So what is the upgrade form the ^2.0.0-beta.11 ?

p3x-robot avatar Oct 06 '17 11:10 p3x-robot

Deprecation of "md" prefix.

In earlier betas, we've had a compatibility mode that allowed people to use either "md" or "mat" as the selector for Angular Material components. This was created so that these components could live side-by-side with AngularJS Material without CSS from the two libraries colliding.

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.

You can automatically update your projects with the angular-material-prefix-updater tool. Check out the tool's page for instructions on how to run.

The deprecation was announced in 2.0.0-beta.11

ghost avatar Oct 06 '17 11:10 ghost

I think a lot of confusion comes from the docs still using "md" as prefix, https://material.angular.io/

johankvint avatar Oct 06 '17 11:10 johankvint

Ah yeah, it looks like they didn't regenerate the api/example assets before deploying? Will probably be fixed within the day.

willshowell avatar Oct 06 '17 11:10 willshowell

ok, i replaced all Md, md to Mat, mat, it works, thanks.

p3x-robot avatar Oct 06 '17 11:10 p3x-robot

@willshowell Hello, I am running into a problem for a project. I am using Angular 4 and we md prefix for material i.e. 2.0.0-beta.10. Now the project requirement says that I should update to mat. So I ran the prefixer tool and it automatically takes me to material 5 version. Finally, my question is can we use mat with Angular 4 version and not Angular 5 as it is giving me metadata mismatch error. Thank you in advance.

kaushikdighe avatar Jan 26 '18 21:01 kaushikdighe

@kaushikdighe I think the highest version of @angular/material you can use is 2.0.0-beta.12 without upgrading to Angular 5

I would urge you to debug your metadata mismatch error, as there have been mighty improvements in both core and material since then.

More details can be found in the CHANGELOG

https://github.com/angular/material2/blob/master/CHANGELOG.md

willshowell avatar Jan 26 '18 21:01 willshowell

@willshowell First of all Thank you for the help. Just to make my understanding of your answer clear, You mean that version 2.0.0-beta.12 is replacing md by mat prefix without going to Angular 5. I tried to wrap my head around the error but its too vague does not point at any specific dependency. Most of the answers i read recommended to upgrade to Angular 5. If you could answer my this single question that would be real help. Thank you again.

kaushikdighe avatar Jan 26 '18 21:01 kaushikdighe

@kaushikdighe, yes that is correct. Good luck!

willshowell avatar Jan 27 '18 16:01 willshowell

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.