Last active
August 29, 2015 14:01
-
-
Save nooitaf/21a0c20b7d581ee28227 to your computer and use it in GitHub Desktop.
findtest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>findtest</title> | |
</head> | |
<body> | |
{{> hello}} | |
</body> | |
<template name="hello"> | |
{{#each posts}} | |
<li> | |
{{title}} | |
</li> | |
{{/each}} | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Posts = new Meteor.Collection('posts'); | |
if (Meteor.isClient) { | |
Template.hello.posts = function(){ | |
return Posts.find({}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then do in Browser Console