Open Oliverq755 opened 4 years ago
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?
import { MatButtonModule } from '@angular/material/button';
Then:
@NgModule({
declarations: [
<<SNIP>>
],
imports: [
HttpClientModule,
MatFormFieldModule,
MatInputModule,
MatButtonModule,
MatIconModule,
<<snuo
]
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 import {MatInputModule} from '@angular/material/input';
For mat buttons; import {MatButtonModule} from '@angular/material/button'; then add to your module imports
imports: [ MatInputModule, MatButtonModule ]
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 app-component
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
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.
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
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.
Sometimes it requires server restart
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
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
app-component
here also solved it this way.
importing the MatButtonModule
in the component which you are using in the template
<button mat-raised-button color="accent">sign up</button>
:+1:
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