[Vuejs]-How do I pass a variable inside my img src in the following :<img alt="Avatar" src=`https://graph.facebook.com/${snAvatarSnuid}/picture`>

1👍

You have to bind. Moreover you have to use quotes in a proper way:

<img alt="Avatar" :src="`https://graph.facebook.com/${snAvatarSnuid}/picture`">

When you bind attributes, everything inside the quotes will be treated as a javascript.

0👍

Simply replace your back tilts with quotes and enclose your variable in double brackets:

<img alt="Avatar" src='https://graph.facebook.com/{{snAvatarSnuid}}/picture'>

Leave a comment