Skip to main content
Tweeted twitter.com/StackSalesforce/status/1097420579345494016
added 98 characters in body
Source Link
Robert Sösemann
  • 38.2k
  • 29
  • 173
  • 508

How would I translate that from Aura to LWC?

<aura:iteration items="{!v.contacts}" var="contact">
   <div class="{!vcontact.isActive ? 'slds-tabs--path dimmed' : 'slds-tabs--path'}">...</div>
</aura:iteration>

How would I translate that from Aura to LWC?

 <div class="{!v.isActive ? 'slds-tabs--path dimmed' : 'slds-tabs--path'}">

How would I translate that from Aura to LWC?

<aura:iteration items="{!v.contacts}" var="contact">
   <div class="{!contact.isActive ? 'slds-tabs--path dimmed' : 'slds-tabs--path'}">...</div>
</aura:iteration>
Source Link
Robert Sösemann
  • 38.2k
  • 29
  • 173
  • 508

Set CSS class dynamically in Lightning web component

How would I translate that from Aura to LWC?

 <div class="{!v.isActive ? 'slds-tabs--path dimmed' : 'slds-tabs--path'}">