Reputation: 2519
I'm adapting the select2 example here http://vuejs.org/examples/select2.html for my project and I need to send some arguments to directive like multiple:true/false etc. This params are going to be used for select2 initialization in directive bind method. How can I accomplish this? In directive docs here http://vuejs.org/guide/custom-directive.html there are some hints e.g.
<div id="demo" v-demo="LightSlateGray : msg"></div>
... but its only one argument, can I have more?
Upvotes: 2
Views: 6240
Reputation: 17246
You have two basic options:
EDIT: multiple clauses above applied to Vue version 0.12. With version 2, that's no longer an option - use an object.
Upvotes: 3