Categories
How to export vue method from template to css file?
how to export vue method from template to css file. Let's say I want to assign a div {backround: url('getPhoto()') }; how to do it?
Answer the question
In order to leave comments, you need to log in
<div v-bind:style="{backround: `url('${getPhoto()}')`}"></div>
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question