mardi 24 mars 2015

Ember.js - get the model data of a DOM element

I have a DOM element and want to get the data model that it is bound to.


This has to be done outside of any ember controller / component. All I have to work with is the DOM element and the global Ember variable (because this piece of code runs from an externally loaded script file).


How can this be done?





Aucun commentaire:

Enregistrer un commentaire