Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm quite new to vue and to petite-vue, so sorry if this is an obvious question
As of now I have a petite vue app set up as follows (excluding fluff)
Let's say there is a quite complex function I want to run on variable1 (that I would not like to have inline within the {{}}. In vue, I'd usually put this in the methods "section" when I initialise my app. Here as the app is initialised automatically, I can't.
What would be the easiest way to do something like:
<h1>{{myfunction(variable1)}}</h1>
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions