Template.currentData

Client

Template.currentData()

import { Template } from 'meteor/templating' Source
  • Inside an onCreated, onRendered, or onDestroyed callback, returns the data context of the template.
  • Inside an event handler, returns the data context of the template on which this event handler was defined.
  • Inside a helper, returns the data context of the DOM node where the helper was used.

Establishes a reactive dependency on the result.

doc_Meteor
2016-05-29 17:25:06
Comments
Leave a Comment

Please login to continue.