-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[0.9] if="{{ 1 < 2 }}" not supporded?! #1499
Comments
Feature. No expressions are supported in bindings, except for ! and inline functions. https://www.polymer-project.org/0.8/docs/migration.html#data-binding In general, expressions like this can be replaced with inline functions or computed properties, like this:
However, it appears that inline functions can't be defined on an auto-binding template. Not sure whether that's a bug or not. |
Opened #1500 for autobinding template issue. Closing this because it's working as intended. |
@arthurevans I think you mean this:
I have a working example at http://plnkr.co/edit/7KKqwIVVKVXt44nkuBgi?p=preview using this syntax with a custom element. It does not work using |
Yep, I was writing too fast there. Thanks, Chuck. |
Ok, thanks for pointing out! |
@teckays Also note, the case you showed is a good candidate for using the |
@kevinpschaaf didn't know about the |
This si not working!
a bug or a feature?
The text was updated successfully, but these errors were encountered: