npm update angular to latest code example
Example: update angular cli
For updating angular cli type this command :
ng update @angular/cli @angular/core
For updating angular cli type this command :
ng update @angular/cli @angular/core