Skip to content

Instantly share code, notes, and snippets.

@brlafreniere
Last active August 29, 2015 14:18
Show Gist options
  • Save brlafreniere/6a0b1d16d35142ab4017 to your computer and use it in GitHub Desktop.
Save brlafreniere/6a0b1d16d35142ab4017 to your computer and use it in GitHub Desktop.
<template name="joinedRoomsList">
<select id="joined-rooms">
{{#each joinedRooms}}
<option>{{name}}</option>
{{/each}}
</select>
</template>
Template.body.helpers({
joinedRooms: function () {
console.log("in joinedRooms"); // does not appear in console.
return Rooms.find({joinedUsers: Meteor.userId()}); // works in client console
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment