Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular material version for angular 5 app

I'm building an angular5 application for this I need angular material, which version of angular material compatible with angular 5 application and how to install it.

like image 213
arun kumar Avatar asked May 30 '18 07:05

arun kumar


People also ask

Can angular material of Version 8 be used in the angular application of version 7?

Your @angular/material and @angular/cdk versions are 8 while your Angular version is 7. You need to change your @angular/material and @angular/cdk versions to 7.

What is latest angular material version?

The latest version as we have seen is 12.1.

How do I find angular material version?

Looks like you can use npm ls @angular/material to tell you the exact version. Show activity on this post. which will display something like that: { "name": "angular-material", "version": "0.11.


2 Answers

With Angular 5, you can use angular material 5. Execute the following commands to install ver 5.2.5 of @angular/material and @angular/cdk:

npm install --save @angular/[email protected] 
npm install --save @angular/[email protected]
like image 127
Faisal Avatar answered Oct 13 '22 05:10

Faisal


For the newer version of angular v.6.0 you can use :

npm install --save @angular/[email protected]
npm install --save @angular/[email protected]

One new command is added in the latest CLI ver. (you need to update to the latest ver of CLI)

ng add @angular/material 

this will automatically add the compatible ver in the package.json file.

like image 41
Abhishek Gautam Avatar answered Oct 13 '22 06:10

Abhishek Gautam