aurelia / templating-binding

An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.
MIT License
32 stars 26 forks source link

Parser/AST: string interpolation support #97

Closed natrim closed 8 years ago

natrim commented 8 years ago

I'm submitting a bug report

Current behavior: template literals don't work with ternary operator

<template bindable="what">
  <div>
    ${what ? `WHAT: ${what}!` : 'what?'}
  </div>
</template>

Expected behavior: i expected it to work like

<template bindable="what">
  <div>
    ${what ? 'WHAT: '+what+'!' : 'what?'}
  </div>
</template>
jdanyow commented 8 years ago

Issue moved to aurelia/binding #500 via ZenHub