Meteor: how to access parent properties within nested templates?

前端 未结 3 1505
慢半拍i
慢半拍i 2020-12-15 09:58

I am getting started with Meteor, and adapting the todo example to include nested tag groups. I have the following HTML, which outputs each name of each tag group, plus the

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 10:38

    "click selected":function(e){
        // this._id
       var doc_id = $(e.currentTarget).parent().parent().attr("uid")
       console.log(doc_id) 
    },
    //specify the each id in the div above the nearest #each
    //this will work in events but not in helpers`
    

提交回复
热议问题