install angular material version 9 code example
Example 1: install angular material
ng add @angular/material
Example 2: ng add @angular/material
npm install --save @angular/material @angular/cdk @angular/animations
ng add @angular/material
npm install --save @angular/material @angular/cdk @angular/animations