我有一个看起来像下面的流星模板。本质上,我想将某些内容从父模板传递给孩子。有没有办法做到这一点?
<template name="parent">
Hello my name is {{name}}
{{#each children}}
{{> child}}
{{/each}}
</template>
<template name="child">
Hello my name is {{child_name}} and my parent's name is [not sure what to do]
</template>
任何帮助将不胜感激!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句