Replies: 3 comments 5 replies
-
Hello @nervusdm You need to use slots for it. I guess it is the best solution(https://vuejs.org/guide/components/slots.html#slot-content-and-outlet) |
Beta Was this translation helpful? Give feedback.
-
Hello @VasylHulpak Could you, if it does not bother you, give me a quick example in petite vue ? |
Beta Was this translation helpful? Give feedback.
-
in petite-vue, component is just a function, so you put myCoolButton in a javascript file, then include it in file2.html's script part |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am familiar with vue.js. (not an expert, but..).
How can I use a component "myCoolButton" from a file1.html inside file2.html (for example).
I tried several things, without succes.
Beta Was this translation helpful? Give feedback.
All reactions