G
G
GogenZZo2014-06-06 16:53:07
JavaScript
GogenZZo, 2014-06-06 16:53:07

EmberJs binding

Is it possible in emberjs to bind an event or attribute to an element, leaving the html clean without the {{ }} ?
As in jquery $('#elem').bind()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur Smirnov, 2014-07-27
@artursmirnov

If I understand the question correctly, then this is done using Ember.View , through the element property of which you can access the root element of the View.
I will add that for View it is not necessary to write `{{view ...}}` at all - Ember itself creates a separate view for each template, it just needs to be redefined.
Also, look at $() .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question