Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

e.target.templateInstance.model #41

@robrez

Description

@robrez

I just found the documentation on finding the model that goes w/ the target of an event handler. I haven't seen this in any of the examples and think it is worth demonstrating.

Often, you’ll want to identify the event with the model data used to generate the template instance, either to update the model data or to access a piece of data that isn’t rendered by the template.

You can get the model data from the event’s target.templateInstance.model property. Any identifiers that you could access inside the template are available as properties on the .model object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions