Jerome
Jerome

Reputation: 1192

Can't use Meteor images that are in the folder public

I'm searching since a little time now how to use my images that are in the folder /public/images/myImg.png

There is my Javascript code (I have tried without '..' with '/public...'):
/imports/ui/body.html

<div id="logoG">
   <img src= "../public/images/logo.png"/>
</div>

And that's the structure of my project:
enter image description here

[EDIT] The result is that: enter image description here

Upvotes: 0

Views: 38

Answers (1)

Ovidiu Dolha
Ovidiu Dolha

Reputation: 5413

I don't think you need the 'public' prefix

<img src= "/images/logo.png"/>

Upvotes: 2

Related Questions