This something what I can't understand and can't solve it...
Short example.
Template helper:
Template.bookDetails.helpers({
book: function() {
console.log("Current router :_id: " + Router.current().params._id);
return Books.findOne(Router.current().params._id);
}
Some lines of template:
<template name="bookDetails">
...
{{#with book}}
Title: {{book.title}} <br>
Author: {{book.author}} <br>
ISBN: {{book.isbn}} <br>
...more...
{{/with}}
...
</template>
And the question is: why do I see print console.log() as many times as call book.some_field in template?
Is it normal???
Router.current().params._idchanging at all? Also... if you prefer, you can use{{title}}instead of{{book.title}}- Scalahansolo