Upgrade ionic 5 new code example
Example 1: How To Update ionic
npm uninstall -g ionic
npm install -g ionic
Example 2: upgrading ionic 5
npm install @ionic/angular@latest @ionic/angular-toolkit@latest --save
npm uninstall -g ionic
npm install -g ionic
npm install @ionic/angular@latest @ionic/angular-toolkit@latest --save