Answer the question
In order to leave comments, you need to log in
How to correctly insert a value into a template?
Can you tell me how to correctly add values to :stroke-dasharray=""
?
<circle v-for="{percent, dash} in cd.content" cx="21" cy="21" r="15.91549430918954" stroke="#49a12f" :stroke-dasharray="percent dash" stroke-dashoffset="25"></circle>
"content": [
{
"result": "Lorem ipsum",
"percent": "96",
"dash": "4",
"img": ""
}
],
:stroke-dasharray=percent
like this
Answer the question
In order to leave comments, you need to log in
did it "dash": "96 4",
, everything works.
<circle cx="21" cy="21" r="15.91549430918954" stroke="#49a12f" :stroke-dasharray="p.dash" stroke-dashoffset="25"></circle>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question