-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular material component are not working even after installation #12
Comments
I am still waiting for the answers and any workarounds. |
Same problem here... |
Sometimes it requires server restart |
Have you imported MatButtonModule into app.module.ts?
Then:
|
Im also facing the same issue, but it's rendering not native an not mat-raised -button, something in between |
Facing the same issue, styles are not loaded, though I’m getting proper html and functionality 😾 |
Ensure you have imported all your required modules; e.g mat-form-field input should have 'matInput' and For mat buttons; imports: [ |
Solved the issue, in my case, I had to import the modules in the app component, cause was using some of the components directly in the |
Ive followed the material get started several times and none of my material imports are working at all. Ive added the import to my app.module and added it to the import list and still nothing. please someone help |
same here. |
Same here |
I was facing the same issue, but after following his instructions @kmooventhan98 and restarted my server, and its working fine. So anyone who is facing this issue can restart the server and try. |
I think usage of Material components changed single Module implementation to reduce bundle size after compile., all the components of Material should be imported in specific module where the component is used. In your case @fidoandfido 's answer would work. |
this was the answer!!!! Thanks |
I believe If we have a submodule then this happens, instead of importing it to app-module import it into your intermediate module. |
Same issue here since upgrade from material design 13 to 14, it's simply not rendering anymore. it's imported in every module, but no chance. Thank god with Angular 15 we won't have this module bogus anymore. |
Same here ;/ with angular 14 |
here also solved it this way. <button mat-raised-button color="accent">sign up</button> |
Prerequisites
Angular material is not working after installing it to the free version of the argon-angular-dashboard screenshot attached.
Expected Behavior
The expected result should include:
Current Behavior
The current behavior includes only the styles of argon-angular-dashboard. It has all the dependencies installed, however, it doesn't show the styles of Angular material
Steps to Reproduce
In order to replicate this issue, follow the following steps:
ng add @angular/material
styles.scss
<button mat-raised-button color="accent">Accent</button>
Context
Output screenshot
The text was updated successfully, but these errors were encountered: