You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetching Account Records From @wire Decorators in Lightning Web Components through Apex Method “@AuraEnabled (cacheable=true)” in The Table Format — LWC
#6
Open
vijayk3327 opened this issue
Jul 12, 2023
· 0 comments
Hey guys, today in this post we are going to learn about How to Fetching Account Records From @wire Decorators in Lightning Web Components with Apex Method “@AuraEnabled (cacheable=true)” in The Table Format.
Hey guys, today in this post we are going to learn about How to Fetching Account Records From @wire Decorators in Lightning Web Components with Apex Method “@AuraEnabled (cacheable=true)” in The Table Format.
→ Get source code live demo link:-
Step 1:- Create Lightning Web Component : getDataWireDecoratorsWithTable.html
`
@wire Decorators in Lightning web components with apex method @AuraEnabled (cacheable=true)
Step 2:- Create Lightning Web Component : getDataWireDecoratorsWithTable.js
` import { api, LightningElement, track, wire } from 'lwc';
import getAccountList from '@salesforce/apex/lwcAppExampleApex.getAccountList';
import {NavigationMixin} from 'lightning/navigation';
export default class getDataWireDecoratorsWithTable extends NavigationMixin (LightningElement) {
@api title;
@api greetings;
@track greeting;
}`
Step 3:- Create Lightning Web Component : getDataWireDecoratorsWithTable.js-meta.xml
<?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> <apiVersion>45.0</apiVersion> <isExposed>true</isExposed> <targets> <target>lightning__AppPage</target> <target>lightning__RecordPage</target> <target>lightning__HomePage</target> </targets> <targetConfigs> <targetConfig targets="lightning__AppPage"> <property name="title" type="string"/> <property name="greetings" type="string"/> </targetConfig> </targetConfigs> </LightningComponentBundle>
→ Get source code live demo link:-
The text was updated successfully, but these errors were encountered: