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) |
0 replies
|
Hello @VasylHulpak Could you, if it does not bother you, give me a quick example in petite vue ? |
2 replies
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 |
3 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.
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.
All reactions