When you are creating a custom element in Aurelia, is there a way to take all of the extra attributes that aren't bound and copy them to a specific element inside the template. For example, say I create a custom element called "my-custom-element" with a bindable property called "name".
<my-custom-element name="MyName" class="my-class" data-id="1" />
My template would be the following:
<template>
<input name.bind="name" type="text" />
</template>
What I would like to have rendered is:
<input name="MyName" class="my-class" data-id="1" />
So in other words I would like any addition attribute(s) that isn't put in by Aurelia or isn't bound to a property to be available for me add to an element in my template. I could add a bindable property for class because that is pretty common, something like the "data-" attributes could be anything.
I would also like to see if it can support the a containerless custom element.