set up angular material angular code example Example 1: angular npm angular material npm i @angular/material Example 2: install angular cdk npm i @angular/cdk --save