command prompt update to latest angular versions code example
Example 1: update angular cli globally
npm update @angular/cli -g
Example 2: how to update angular version
content_copy
ng update @angular/cli @angular/core
npm update @angular/cli -g
content_copy
ng update @angular/cli @angular/core