Created
September 26, 2018 13:20
-
-
Save veritstudio/fb2f66658715853f80fb1eb16ad9adde to your computer and use it in GitHub Desktop.
Get image src for Knockout html template in Magento 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img data-bind="attr: { src: require.toUrl('images/shirt.jpg') }" alt="Shirt"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment