Reputation: 195
I created an angular app with 'ng new my-app', folder structure is like so:
my-app
|- e2e
|- node_modules
|- src
|- assets
|- images
|- smile.jpg
How can I reach my image through the client
with http://localhost:4200/images/smile.jpg
?
Upvotes: 0
Views: 2271
Reputation: 4533
Try this way
If you want to open image from browser url then use this
http://localhost:4200/assets/images/smile.jpg
Upvotes: 4