Topic: how to integrate an Intro App into Angular?
Ryannnnn priority asked 4 months ago
I had expected to be able to create a component in Angular 15, and add the supplied code from this Angular Intro-App, but the style is broken.
MDBootstrap Intro App's code (section: "Background image layout- first option" section; code is at the "show code" button)
Expected to copy and paste code:
MDBootstrap's Intro App html --> home.component.html
MDBootstrap's Intro App scss --> home.component.scss
The MDBootstrap style is very broken in the Angular project.
Resources (screenshots, code snippets etc.)
It looks like you have installed MDB5 but used code from MDB4. You should choose one version to work with. Here are links with instructions for installing:
We found a mistake in our sample code. It's already fixed. Additionally you should add scss code to styles.scss instead of component.scss. This is because how Angular styles scopes work with View Encapsulation. You can't overwrite global styles (html, body) from component level.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 4.1.0
- Device: laptop
- Browser: Chrome
- OS: MacOS
- Provided sample code: No
- Provided link: Yes