0

Previously I could do something like this to get a two-way binding to a dynamic key:

{{my-component idBinding='content.dynamicKey'}}

In Ember 2.0 this generates a depcrecation warning:

DEPRECATION: You're using legacy binding syntax: idBinding=content.dynamicKey 
Please replace with id=content.dynamicKey

Unfortunately I cannot bind to content.dynamicKey as this will only bind to the string value and not the actual path mapping to the value.

How can I achieve the above behaviour in Ember 2.0?

AyKarsi
  • 9,435
  • 10
  • 54
  • 92

1 Answers1

0

I think it's just {{my-component id=content.dynamicKey}}.

Possible duplicate of Input helper valueBinding is deprecated - what's the alternative?

Community
  • 1
  • 1
Kori John Roys
  • 2,621
  • 1
  • 19
  • 27