how to update angular version

JavaScript
For updating angular cli type this command :
ng update @angular/cli @angular/core   npm uninstall -g @angular-cli
npm install -g @angular/cli@latest      
        content_copy
      
      ng update @angular/cli @angular/core
    ng update @angular/[email protected] @angular/[email protected]

Source

Also in JavaScript: