I have this view :
<ul class="list-group">
<li repeat.for="app of apps" class="list-group-item ${app.id === $parent.selectedId ? 'active' : ''}">
<img alt="" class="img-thumbnail" src.bind="app.icon">
</li>
</ul>
The VM :
apps=[
{
id:getId(),
routename:'config',
name:'Configuration',
icon:'parametres.png'
},
{
id:getId(),
routename:'import',
name:'Import',
icon:'../static/images/import.png'
},
{
id:getId(),
routename:'stats',
name:'Statistiques',
icon:'../static/images/parametres.png'
}
];
So as you can guess I try to have my src
attribute set dynamically.
parametres.png
is in src
folder and other images are up one time and then in static/images
folder (I have tried different paths).
The images never show in the browser:
and :
I'm new to Aurelia/Javascript but I understand that webpack should do something to pictures before you can see them in your app, and in this case for some reason it doesn't do the job, so my pictures cannot be seen.
What did I do wrong ?