How to bind an input value in emblem.js

I have an attribute filter

in my controller that I want to bind to the corresponding DOM element.

For now, I can display the value filter

by doing:

%input type="text" value=filter

      

But I want to reflect the input changes back to filter

bi-directional binding ...

Any hint?

+3


source to share


3 answers


view Ember.TextField valueBinding="filter"



+2


source


= input valueBinding="filter"



cleaner.

+7


source


= input value=filter

or even with an additional property:

=input value=object.property

both work.

+1


source







All Articles