Select one ... (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement
When using clr-icon like this:
<clr-icon [shape]="someVariable"></clr-icon>
I expect that it should be able to bind to the shape property of clr-icon and change the icon shape based on a variable. If it's not supported in this way, is there any workaround to bind the shape to a variable so that the shape can change dynamically?
Compiler complains:
compiler.es5.js:1690 Uncaught Error: Template parse errors:
Can't bind to 'shape' since it isn't a known property of 'clr-icon'.
https://plnkr.co/edit/UoybOAn9R4SLhp5s5spM?p=preview
uncomment this line to reproduce:
see the plnkr
It's an attribute. So it has to be '[attr.shape]'. Not just '[shape]'
Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Most helpful comment
It's an attribute. So it has to be '[attr.shape]'. Not just '[shape]'