In this article, we will learn how to implement angular 10 to angular 11 upgrades. you will learn to update @angular 10 to 11. this example will help you upgrade angular CLI to 11 in Ubuntu. Here you will learn to update angular 10 to 11. Follow the below tutorial step on how to update angular versions 10 to 11.
I have two ways to upgrade your angular 10 to 11 first we will directly update your angular cli version. if it's not working for you then you can uninstall and reinstall your angular cli with the below steps.
Let's see both ways:
Way 1:-
Step 1) Update Angular CLI
ng update @angular/core@11 @angular/cli@11 --force
Step 2 ) If you're using angular/material the update command is as below
ng update @angular/material@11 --force
Step 3) Use ng update command for typescript update.
If everything is ok the use ng version command to check the version of angular CLI.
Way 2:-
Step 1) Uninstall Angular CLI:
npm uninstall -g @angular/cli
Clear Cache:
npm cache clean --force
npm cache verify
Install Angular CLI:
ng update @angular/cli@11 @angular/core@11 --allow-dirty
--force
Then check the version using ng version,
Hope it is helpful for you Keep learning.