Created
June 7, 2013 15:49
-
-
Save i-Hun/5730263 to your computer and use it in GitHub Desktop.
Meteor: how to access parent properties within nested templates?
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.nestedTemplate.events({ | |
| 'click a.class':function(event,template){ | |
| var parentID = template.data._id; | |
| console.log(parentID); | |
| } | |
| }); | |
| //http://stackoverflow.com/questions/13091914/meteor-how-to-access-parent-properties-within-nested-templates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment