I'm trying to use custom attributes on inputs and divs. When I put static data like this:
<input type="hidden" class="test" value="0" custom-data='12345' />
The code works fine. But when I use data from a loop for example:
<input type="hidden" class="test" value="0" custom-data='{{ data.id }}' />
I get this error:
Unhandled Promise rejection: Template parse errors:
Can't bind to 'custom-data' since it isn't a known property of 'input'.
<input type="hidden" class="test" value="0" [ERROR ->]custom-data='{{ data.id }}' />