Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Changing button color or icon dynamically

$
0
0

@brandyshea this is a good to know, but not sure I can apply that for my code.

What about if it is embedded within a *ng-for? Something like (here I am talking about ):

<ion-list inset>
  <ion-header><h5>{{ siteName }}</h5></ion-header>
  <ion-item *ng-for="#menu of menus" (click)="menuSelected(menu)">
    <icon [attr.menu.menuIcon]="true ? '' : null" item-left></icon>
    {{ menu.name }}
    <span item-right>
      <button clear>{{ menu.quantity }}</button>
    </span>
  </ion-item>

Thanks


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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