3

I have a filter attribute in my controller which I want to bind to the corresponding DOM element.

So far, I am able to display filter value, doing:

%input type="text" value=filter

But what I want is to reflect input changes back to filter, with a bidirectional binding...

Any clue?

Mike Aski
  • 9,180
  • 4
  • 46
  • 63

3 Answers3

7

= input valueBinding="filter"

is cleaner.

asaf000
  • 606
  • 6
  • 13
2

view Ember.TextField valueBinding="filter"

Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
1

= input value=filter

or even with a sub property :

=input value=object.property

both works.

Luc Boissaye
  • 935
  • 8
  • 14