Ismaestro / angular-example-app

Angular 17 Example App + Standalone Components + i18n + EsBuild
https://angular-example-app.netlify.app/
2.16k stars 1.21k forks source link

Angular Material #147

Closed sunch1ld closed 6 months ago

sunch1ld commented 1 year ago

Hi I am Beniamino Ferrari,

How can I use angular material components with standalone components in this template?

Best regards

Beniamino Ferrari

mindexpert7546 commented 6 months ago

There are some step to use the Angular Material into the Standalone Application :

  1. Make sure You have Angular17

  2. run this comman > ng add @angular/material

  3. Open the Angular.json file and check angular material style is encluded or not

  4. go to @node_module>@angular>prebuild_themes>right click theme you want and (copy Relative path> now open the angular.json go to last style array .. it will be near 99-100 line> and paste the copy path

  5. You are done.... whatever material you want to use just import it into your component

@sunch1ld