Help with loading an image in Angular 18
Anonymous
TRIALOP

a year ago

Hey I need some help from somebody.
I can't get to show some pictures of icon's / logo's in app.component.html in an angular 18 project.

Am I doing something wrong? I am not really a beginner in this but can't figure out why it's not showing

Solved

6 Replies

Anonymous
TRIALOP

a year ago

1320420808581058600


Anonymous
TRIALOP

a year ago

1320420860464468200


Anonymous
TRIALOP

a year ago

1320420896384614400


Anonymous
TRIALOP

a year ago

(The only picture i get to show on the site is in the css with the background-image:url() property)
error codes in browser.


Anonymous
TRIALOP

a year ago

Solved:

Currently in Angular 18 you need to use public/assets folder.

src='assets/filename.png' by example


dev
MODERATOR

a year ago

!s


Status changed to Solved dev about 1 year ago


Loading...