Topic: Angular 9 > No style
Hello, I use Angular v9 and Pro MDB. But when I use simple component like :
<button type="button" mdbBtn color="primary" mdbWavesEffect>Primary</button>
No style are displayed. Only the base html button. In the header code, I found bootstrap and mdb sass.
Any solution ?
Answered
- User: Pro
- Premium support: No
- Technology: Angular
- MDB Version: 9.0.1
- Device: Mac
- Browser: Safari
- OS: macOS Catalina
- Provided sample code: No
- Provided link: No
Konrad Stępień staff commented 12 months ago
Do other components have styles?
Did you correctly follow the quick start page?
THIRIAU pro commented 12 months ago
Some have style yeah. Yes I already import styles in angular.json.
Arkadiusz Idzikowski staff commented 12 months ago
Do you use lazy loading? Please make sure that you imported MDB modules to the modules in which you use MDB components.
THIRIAU pro commented 12 months ago
Yes I import mdb modules like InputsModule, WavesModule or ButtonsModule. Else I would get an error, right ?
Arkadiusz Idzikowski staff commented 12 months ago
Can you prepare a simple demo app on which we will be able to reproduce this problem and send it to a.idzikowski@mdbootstrap.com?
Ungr pro commented 11 months ago
Hello. I have the same issue.
After upgrading from Angular 8 to Angular 9 the MDB styles are no longer compiled onto the page.
Have you managed to solve this out?
Arkadiusz Idzikowski staff commented 11 months ago
@THIRIAU
Did you resolve the problem with buttons? You only send me a screenshot that show a problem with input styles.
The problem in outline input is caused by the
mdb-iconcomponent. We need to update documentation and some fixes to the styles.MatDepInfo pro commented 11 months ago
@Arkadiusz Idzikowski Yeah I fixed button style with import "ButtonsModule" in every modules. It seems to work.
Let me know when outline input style will be fixed, thanks !