-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how to use the Options? (add a Prop to a component) #2
Comments
Ok I figured out how to do it:
And in the main, for the component creation: => Now the HTML tag receives the props data correctly (in var msg): However, note that all other solutions I tried didn't work (I realized a strange behavious trying with the following codes)
=> I get the props in my underlying component, the events as well, but NOT the binded model data (???) Or when doing:
=> I get the props in my underlying component, the binded model data are OK, but NOT the events anymore (???) This might help somebody else struggling with it.... |
Well, sorry for the late reply. the |
Hello,
First of all, well done this package is really amazing and soooo powerful combined with gopherjs. I love it.
However, I don't manage to understand how I could add a PROPS to a given component ?
I created a dummy component package that I import from my main package.
Then creating it like
I would like to add a prop to my dummy component, template would be like
<dummy msg="hello from outside world"></dummy>
Looks like I can create an option object such as:
=> Then how do I attach this *vue.Option, to this specific component created above ?
Or do I am going totally wrong here ?
Thanks in advance for the tip...
The text was updated successfully, but these errors were encountered: