Skip to content

Instantly share code, notes, and snippets.

View nilsi's full-sized avatar

Nicklas Nilsson nilsi

  • Gothenburg, Sweden
View GitHub Profile
@nilsi
nilsi / gist:2eee6c3a37aaf37ac701
Last active March 25, 2016 03:17
Same code on Client and Server confusion.
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");

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: