<aura:application extends="force.slds"> <c:abc a="a" b="a,b,c" c="c" /> </aura:application>
<aura:application extends="force.slds"> <c:abc a="a" b="a,b,c" c="c" /> </aura:application>
<template> {d} {e} <template if:true={deWired}> Data: {deWired.data} Error: {deWired.error} </template> </template>
<template> {d} {e} <template if:true={deWired}> Data: {deWired.data} Error: {deWired.error} </template> </template>
import { LightningElement, wire, track, api } from 'lwc'; import getDE from '@salesforce/apex/ABCCont.getDE'; export default class Abc extends LightningElement { @api a; @api b; @api c; @wire(getDE, { a:this.a, b:this.b.split(','), c:this.c}) deWired = {}; @track d; @track e; @track error; connectedCallback() { getDE({ a:this.a, b:this.b.split(','),c:this.c}).then(result=>{ this.d = result.d; this.e = result.e; }).catch(error => { this.error = error; }); } }
import { LightningElement, wire, track, api } from 'lwc'; import getDE from '@salesforce/apex/ABCCont.getDE'; export default class Abc extends LightningElement { @api a; @api b; @api c; @wire(getDE, { a:this.a, b:this.b.split(','), c:this.c}) deWired = {}; @track d; @track e; @track error; connectedCallback() { getDE({ a:this.a, b:this.b.split(','),c:this.c}).then(result=>{ this.d = result.d; this.e = result.e; }).catch(error => { this.error = error; }); } }
@wire(getDE, { a:this.a, b:this.b.split(','), c:this.c}) deWired = {};
@wire(getDE, { a:this.a, b:this.b.split(','), c:this.c}) deWired = {};
public inherited sharing class ABCCont { @AuraEnabled(cacheable=true) public static Map<String, Object> getDE(String a, List<String> b, String c) { return new Map<String, Object>{'d'=>'d','e'=>'e'}; } }
public inherited sharing class ABCCont { @AuraEnabled(cacheable=true) public static Map<String, Object> getDE(String a, List<String> b, String c) { return new Map<String, Object>{'d'=>'d','e'=>'e'}; } }