I would like to join a string in an expression in Angular2, though seem unable to do so. (Specifically in the attr.href of the a tag.
For example, assume that I have a url made of '/page/id', and the ID is stored in a variable.
<a [attr.href]="/page/{{id}}">link</a>
This will not work, because we can not use {{}} syntax in an expression.
I am not sure how I would go about joining strings here.
{{}}and[]property binding stackoverflow.com/a/36528964/5043867attrin this case. See my updated answer.