vue-meteor icon indicating copy to clipboard operation
vue-meteor copied to clipboard

Embed Blaze template with data.

Open laosb opened this issue 8 years ago • 2 comments
trafficstars

In your implementation, we can't pass data to Blaze templates. That make it hard to use userccounts:* in apps.

I'm proposing:

<div v-blaze="{ name: 'atForm', data: { state: 'changePwd' } }"></div>
<!-- But still accept: -->
<div v-blaze="'discoverPage'"></div>

laosb avatar Jan 16 '17 04:01 laosb

The workaround for now is to create a wrapper Blaze template to which you don't need to pass any props. And in this wrapper Blaze template you include {{> atForm state="changePwd"}} the normal Blaze way and you can use Session to pass some variables from Vue to the wrapper.

gustogummi avatar Jan 19 '17 08:01 gustogummi

I need the same 👍 @laosb Have any way???

thearabbit avatar May 20 '17 12:05 thearabbit