Created
May 18, 2012 23:40
-
-
Save pctj101/2728171 to your computer and use it in GitHub Desktop.
Nested meteor templates w/ parent reference
This file contains hidden or 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
| <template name='reservation'> | |
| {{#each venues}} | |
| {{> venue}} | |
| {{/each}} | |
| </template> | |
| <template name='venue'> | |
| <div class='venue'> | |
| {{bambam reservation}} | |
| </div> | |
| </template> | |
| Template.venue.bambam = function(reservation) { | |
| console.log("bambam.this", this); // works like a charm | |
| console.log("bambam", reservation); // prints undefined | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment