AngularCLI and Angular Material (schematics) error: Collection “@angular/material” cannot be resolved

后端 未结 6 1322
眼角桃花
眼角桃花 2021-02-12 17:45

I am trying to use the Angular schemats that are shown on this page. When I try to use this following command in the terminal at the root of the project ng generate @ang

6条回答
  •  野的像风
    2021-02-12 18:25

    Worked for me this way (from docs)

    ng add @angular/material
    
    ng generate @angular/material:material-nav --name 
    
    ng generate @angular/material:material-dashboard --name 
    
    ng generate @angular/material:material-table --name 
    

    Angular 6.4.7

提交回复
热议问题