I need to use the latest version of Angular material i.e version 7.x. But my current Angular version is 5.x. is it possible to update Angular material alone?
Asked
Active
Viewed 358 times
1
-
I strongly doubt that Angular Material 7.x will work on Angular 5.x, but you can try it by updating the material and cdk packages. – G. Tranter Feb 05 '19 at 22:15
-
Material has peer dependency on angular core, common and some other angular packages. Therefore you wont be able to update to material 7.x without updating Angular 5.x – Murgin Boo Feb 18 '19 at 21:56
-
yes Murgin you are correct – Joshua Feb 20 '19 at 08:47
2 Answers
0
You can run the following command that updates Angular Material/CDK to the latest version:
ng update @angular/material
See the Angular Update Guide for more info.

Edric
- 24,639
- 13
- 81
- 91
0
Finally after analysis, I understood we can't update angular material to version 7.x in Angular 5 project. Angular project need to be updated to 7 to have angular material 7.x

Joshua
- 21
- 1
- 6