FrozenPandaz / ng-universal-demo

171 stars 54 forks source link

how to add images to pages? #13

Closed KissBalazs closed 7 years ago

KissBalazs commented 7 years ago

I have a problem with inserting images to the pages.

For instance: <img src="../../assets/img/mylogo.png" />

and with existing path and file, it gives me a 404 error: (index):10 GET http://localhost:8000/assets/img/mylogo.png 404 (Not Found)

Same for <img [src]="logoPath"/>, etc.

Thank you for the help in advance.

KissBalazs commented 7 years ago

This is a webpack issue, need to export the assets folder. How silly of me...

Dragons0458 commented 7 years ago

Hi, sorry, but ... how can I fix the error? I'm having the same problem... Thank you!

ysus commented 7 years ago

https://github.com/FrozenPandaz/ng-universal-demo/issues/22