Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am nilsi on github.
  • I am nilsi (https://keybase.io/nilsi) on keybase.
  • I have a public key ASAaU9gH0_lcmyYfpEAgRfKgDO9OHG-Wz4LX0yQc0ekkNAo

To claim this, I am signing this object:

@nilsi
nilsi / gist:2eee6c3a37aaf37ac701
Last active Mar 25, 2016
Same code on Client and Server confusion.
View gist:2eee6c3a37aaf37ac701
if (Meteor.isClient()) {
Template.product_carousel.onRendered(function () {
self.autorun(function() {
self.subscribe('relatedProducts');
});
});
Template.product_carousel.helpers({
similarProducts: function () {
var product = Session.get("expandedProduct");