Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on-* expression support #446

Closed
bitpshr opened this issue Mar 12, 2014 · 4 comments
Closed

on-* expression support #446

bitpshr opened this issue Mar 12, 2014 · 4 comments

Comments

@bitpshr
Copy link

bitpshr commented Mar 12, 2014

Is there a plan to add true expression support to on-* bindings rather than restricting them to simple path expressions?

e.g.

<message-entry
    on-tap="{{ {loadNextPage: message.type == 'pagination'} | tokenList }}"
    data="{{message}}">
</message-entry>

Will work up a PR if desired, just curious.

@sorvell
Copy link
Contributor

sorvell commented Mar 13, 2014

There are no immediate plans to add this, but it certainly makes sense to pass data to event handlers something like this.

We'll definitely consider a PR. I should mention that we want to be careful about expanding the expression syntax since this can have wide support implications.

@rafaelw
Copy link
Contributor

rafaelw commented Mar 13, 2014

@bitpshr If you want to attempt this, I recommend writing a proposal for how it will work and intended implementation.

@sorvell
Copy link
Contributor

sorvell commented Aug 11, 2014

@bitpshr Please re-open if you have more to contribute, thanks.

@sorvell sorvell closed this as completed Aug 11, 2014
@zoechi
Copy link

zoechi commented Sep 5, 2014

I guess googlearchive/polymer-dev#90, Polymer/polymer-dev#19, googlearchive/polymer-dev#30 are similar or at least related

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

No branches or pull requests

5 participants