public class test{
@AuraEnabled
Public Static Integer init1;
@AuraEnabled
Public Static Integer init2;
@AuraEnabled
public Static string returnStringOnlyButInitInteger(){
Init1 = 10;
Init2 = 20;
return "I have initialized the Integers";
}
}
If I have initialized the string variables in the Apex Controller and call the method on Component initialization. How can I access the other variables in Component ? Thanks