Clarity: can't bind to the shape property of clr-icon

Created on 19 Aug 2017  路  2Comments  路  Source: vmware/clarity

Select one ... (check one with "x")

[x] bug
[ ] feature request
[ ] enhancement

Expected behavior

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?

Actual behavior

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'.

Reproduction of behavior

https://plnkr.co/edit/UoybOAn9R4SLhp5s5spM?p=preview
uncomment this line to reproduce:

Environment details

see the plnkr

Most helpful comment

It's an attribute. So it has to be '[attr.shape]'. Not just '[shape]'

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings