【发布时间】:2014-11-24 09:25:19
【问题描述】:
<template name="add">
{{> addst grName="{{name}}" }} // tried without "" throwing error
<div >{{name}}</div> //Displaying the name
</template>
<template name="addst">
{{grName}} //Not working displaying {{name}}
</template>
为什么上面的代码不起作用。
仅供参考,我在路由器中发送数据以添加 tempate
groups.findOne({_id:this.params._id}); in data context
【问题讨论】: