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

后端 未结 6 1219
眼角桃花
眼角桃花 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:11

    You can install it using:
    ng generate @angular/material:dashboard --name myDashboard

    For other components it will be:
    ng generate @angular/material:nav --name myNav
    ng generate @angular/material:table --name myTable

    Info about other component schematics you can find in file, located in:
    /node_modules/@angular/material/schematics/collection.json

提交回复
热议问题