I’m just trying to figure out how to get the ID, not the Object(“FDKSLJDKFJKLDJFKLDS”)?
<template name="home">
{{#each story in stories}}
<div class="row">
<div class="col s12 m12">
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator img-responsive" src="/images/story/{{story.image}}">
</div>
<div class="card-content" style="background-color: #FFF; opacity: .5;">
<span class="card-title activator grey-text text-darken-4 upper"><h2>{{story.title}}<i class="material-icons medium right">more_vert</i></h2></span>
<p><a href="/story/{{story._id}}/1">Read</a></p>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4 upper"><h2>{{story.title}}<i class="material-icons medium right">close</i></h2></span>
<p class="flow-text"><img style="width: 50% !important; padding-right: 10px;" src="/images/story/{{story.image}}" align="left"> {{story.description}}</p>
<p><a href="/story/{{story._id}}/2">This is a link</a></p>
</div>
</div>
</div>
</div>
{{/each}}
</template>
It’s:
not: {{story._id}}
not: {{story.id}}
not: {{_id}}
not: {{id}}
not: {{@id}}
not: {{@_id}}
How do I drop the ObjectID trash?