upgrade angular from 6 to 8 code example
Example 1: how to update angular version
content_copy
ng update @angular/cli @angular/core
Example 2: update angular materia;
npm update @angular/material @angular/cdk
content_copy
ng update @angular/cli @angular/core
npm update @angular/material @angular/cdk