Is this something that should work? I can't seem to get it to work — here's a simplified version of my element:
<my-custom-element form-action="#{populate_orders_path}"></my-custom-element>
(The populate_orders_path is defined by my Rails server and returns "/store/orders/populate")
Element definition:
<dom-module id="my-custom-element">
<template>
<form action="{{formAction}}">
…
</form>
</template>
<script src="MyCustomElement.js"></script>
</dom-module>
JS (Coffeescript, really, but eh):
MyCustomElement = Polymer(
is: 'my-custom-element',
properties:
formAction: String
)
In the browser, the form element is invariably rendered with an action of "
http://localhost:4000/store/assets/%7B%7BformAction%7D%7D". In the debugger, I can see the formAction property correctly being set to the expected value. Other bindings and properties work fine, this appears to be specific to this tag/attribute.
Any help appreciated,
-j