My <img>:
<img width="90" height="90" src="{{image}}" />
Default image folder: assets/img/pic_user.png
How can I define a default image that is not defined in the variable: {{image}} ?
Use Logical OR operator ||
<img width="90" height="90" src="{{image||'assets/img/pic_user.png'}}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With