Answer the question
In order to leave comments, you need to log in
Where to put an object with methods when using Vue?
hello i want to do
<div class="textmessage">
{{
LiteStringPaser.parseColor(
LiteStringPaser.parseLineBreak(myText)
)
}}
methods: {
LiteStringParser: {
parseLineBreak(str) {
return str;
},
parseColor(str) {
return str;
},
},
},
doesn't work either
Answer the question
In order to leave comments, you need to log in
{{ myComputed }}
// ...
computed: {
myComputed() {
return Lightparser.spaghetti();
},
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question