Optional bound attributes

& attr is for both version. .attr is only for v2. In v1, you can have a look at it in this GH issue Support assignment of attribute litterals via interpolation · Issue #106 · aurelia/templating-binding · GitHub
The implementation in v2 is different with the code example there, and is also better.

For the doc, I think it’s not doc’d properly in both versions. Will add it :+1:

3 Likes