-
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
TemplateBinding should warn/console log about using bind with references. #615
Comments
Worked around in my project with eseidel/cycletimes@6919a9d |
I'm not sure we can warn here. Conceptually it is valid. Your second template might have a model that has a bar property. |
Can you give an example where the bind="{{ 'foo' as bar }}" is not ignored? |
It would not be ignored when you stamp out |
Keeping this open to see if we can think of when it would we guarantee to be correct to warn. Another option might be to "inherit" the bind attribute value from the ref template. |
Arv has convinced me in #polymer that it's arguably the responsibility of sorted-table to warn when it sees a bind= on my rowTemplate that it's not going to use it. https://github.com/stevenrskelton/sortable-table I doubt it's worth fixing in that case. |
Sorry, feel free to keep it open as you wish. |
Looks like this is resolved! Closing here. |
Won't show foo. since bind= is ignored on the target template. You'll have to nest another template inside if you want your bind= to work.
The text was updated successfully, but these errors were encountered: