Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71200

How can I do the following with the tag?

$
0
0

@Kyrax80 wrote:

I have the following piece of code:

<ion-icon [class.rotate]="option.expanded" class="header-icon icon icon-button-right" [name]="option.iconName || menuSettings.arrowIcon" item-left></ion-icon>

and I need to replace ion-icon for i. How can I do this? I get the following error if I just replace it:

Uncaught Error: Template parse errors:
Can't bind to 'name' since it isn't a known property of 'i'. ("
                    <i [class.rotate]="option.expanded" class="header-icon icon icon-button-right" [ERROR ->][name]="option.iconName || menuSettings.arrowIcon" item-left></i>
                    {{ option.displ"): ng:///AppModule/SideMenuContentComponent.html@22:99

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71200

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>