Use templateInstance.model instead of data- attributes in click handler.