You need to sign in to do that
Don't have an account?

How to trim the string inside aura iteration in lightning component
I have a situation where i want to display the field value which should show sub string value of field inside aura iteration eg email field is test1.user1@gmail.com i want to display value as test1.user1. ho can i achieve this?
<th data-label="Id" scope="row"> <div class="slds-truncate" title="Cloudhub"> <a href="{!'/one/one.app?#/sObject/'+ singleRec.Id + '/view'}" target="_blank">{!singleRec.Email}</a> </div> </th>
Please refer belwo code, where I have queried a list of contacts and have displayed their username by splitting the Email with '@':
All Answers
You can't perform operations here, you need to use an attribute to substring the value in your controller/helper.js and render it here.
Please refer belwo code, where I have queried a list of contacts and have displayed their username by splitting the Email with '@':