In Ember, bind-attr
shouldn't be used inside of your link-to
help as that should only be used inside of html elements:
<a {{bind-attr href=myLink}}>My Link</a>
Inside of Handlebars helpers, you just define the property directly.
{{#link-to "blub" data-testID="aID"}}{{loc "blub"}}{{/link-to}}
The attribute is not rendered into the HTML if the quotes are missing.
But you also need to reopen the LinkView
:
Ember.LinkView.reopen({
attributeBindings: ['data-testID']
});