function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Debaranjan GhoshDebaranjan Ghosh 

<aura:if with <tr>

Hello Guys 

Need one small Clarification on usage of Aura if Syntax :
Can we use <tr> inside aura if ?
I got a big error from Dev Console after doing that though the Aura Component was saved successfully without giving error.
Following is the code structure 

<aura:attribute name="invoiceRecordDetail" type="Invoice__c" />
<aura:attribute name="InvoiceTypeMed" type="string" default="Medical" />
.....


<table>
...
<tbody>

<aura:if isTrue="{!v.invoiceRecordDetail.Invoice_Type__c==InvoiceTypeMed}">
<tr>
.....
</tr>
</aura:if>

<tbody>
.....
</table>
.....
 
ravi soniravi soni
Hi Debaranjan,
replace your aura:if with this
 <aura:if isTrue="{!(v.invoiceRecordDetail.Invoice_Type__c== v.InvoiceTypeMed)}">
let me know if it's helps you and Close your query marking as solved.
Thank you