Skip to content

Comments

feat(html-only-element): defaultBindingMode, coerce#309

Closed
bigopon wants to merge 1 commit intoaurelia:masterfrom
bigopon:templating-resources-dynamic-element
Closed

feat(html-only-element): defaultBindingMode, coerce#309
bigopon wants to merge 1 commit intoaurelia:masterfrom
bigopon:templating-resources-dynamic-element

Conversation

@bigopon
Copy link
Member

@bigopon bigopon commented Sep 28, 2017

This PR follows #301 to enhance @bindable declaration for html only element with defaultBindingMode and coerce.

Usage

<template bindable='deposit:number & fromView, currency'>
  <label>
    Enter deposit amount (${currency}): <input type='number' value.bind='deposit' />
  </label>
</template>

It doesn't require aurelia/templating#558 but it can work automatically after that got merged.

@bigopon
Copy link
Member Author

bigopon commented Apr 5, 2018

the main PR that makes this compelling was closed, and enabled in plugin form. If anyone interested in this feature, please discuss at https://github.com/aurelia-contrib/aurelia-typed-observable-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant