我想创建一个带有标签的帖子模型,并且能够显示每个帖子的所有标签。你知道最好的方法吗??
我试过这个
<template name='postsLists'>
{{#each post}}
{{> postDetails }}
{{/each}}
</template>
<template name='postDetails'>
title: {{title}}
{{#each tag}}
{{tag}}
{{/each}}
</template>
我想创建一个带有标签的帖子模型,并且能够显示每个帖子的所有标签。你知道最好的方法吗??
我试过这个
<template name='postsLists'>
{{#each post}}
{{> postDetails }}
{{/each}}
</template>
<template name='postDetails'>
title: {{title}}
{{#each tag}}
{{tag}}
{{/each}}
</template>