Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for:each in lwc js

<template for:each={lstAccounts} for:item="acc">
    <p key={acc.Id} style="display:inline">
        <lightning-badge label={acc.Name}></lightning-badge>
    </p>
</template>
Source by niksdeveloper.com #
 
PREVIOUS NEXT
Tagged: #lwc #js
ADD COMMENT
Topic
Name
1+1 =