arun kumar
arun kumar

Reputation: 1171

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.

Upvotes: 10

Views: 13786

Answers (2)

Abhishek Gautam
Abhishek Gautam

Reputation: 1767

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.

Upvotes: 4

FAISAL
FAISAL

Reputation: 34673

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]

Upvotes: 24

Related Questions