Angular material version for angular 5 app

夙愿已清 提交于 2019-12-04 04:07:05

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/material@5.2.5 
npm install --save @angular/cdk@5.2.5

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

npm install --save @angular/material@6.2.1
npm install --save @angular/cdk@6.0.0

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!