import * as material from @angular/material code example
Example 1: angular npm angular material
npm i @angular/material
Example 2: install angular material
ng add @angular/material
npm i @angular/material
ng add @angular/material