images not rendering


Topic: images not rendering

Helmar Bachle asked 6 years ago

Hi all my images are not rendering on Angular MDB Bootstrap.
I have added them to the folder but nothing showing up on localhost 4200
<img src="1-1.jpg" class="img-fluid" alt="Responsive image">

Damian Gemza staff answered 6 years ago

Dear Helmar, In Angular, you have to serve files like images from the assets folder. This folder is located in the src folder of your application. If you have some images in assets, and you want to use them in your app.component.ts, the src path should be similar to mine:
<img src="assets/favicon.ico" alt="">
Best Regards, Damian
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No