0

I want to use the routing state, described also here, for the version 7.2.x of Angular, I have 7.1.1 currently, I tried uninstalling and reinstalling CLI globaly and locally, but no change, how can I upgrade Angular?

 dependencies": {
"@angular/animations": "^7.2.14",
"@angular/cdk": "^7.3.6",
"@angular/cli": "^7.3.9",
"@angular/common": "^7.1.1",
"@angular/core": "^7.1.1",
"@angular/forms": "^7.1.1",
"@angular/http": "^7.1.1",
"@angular/material": "^7.3.6",
"@angular/router": "^7.1.1",    //This one does not help.
 ....
 },
TiyebM
  • 2,684
  • 3
  • 40
  • 66
  • This blog may be usefull http://laxmanchavda.blogspot.com/2021/05/upgrade-angular-version-to-latest.html – laxman Sep 24 '21 at 08:10

1 Answers1

1

Run the following command

ng update @angular/cli@7.2.x

and just the following to see what all can be updated

ng update
Abhidev
  • 7,063
  • 6
  • 21
  • 26
  • ng update, only suggested cdk,core, material and rxjs, while others still 7.1.1! can I update routing specifically? – TiyebM May 08 '19 at 16:00
  • yes you can update any specific package you want...use the 1st command I mentioned – Abhidev May 08 '19 at 16:02