+ Start a Discussion
srujith chintha 4srujith chintha 4 

i am getting an error in aura

User-added image
Best Answer chosen by srujith chintha 4
mukesh guptamukesh gupta
Hi Surith,

First point:-
You don't need to pass parameter from Application. So you need to add in your component default value  

Second point:- Try to use better naming, currently you are using 'Int'

below is a part of component's best prectice:-

<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>



if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh 

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Srujith,

Can you share the aura component and apex class so experts can suggers what the error is.

Thanks,
 
srujith chintha 4srujith chintha 4
User-added imageUser-added imageUser-added image
srujith chintha 4srujith chintha 4
this the code 
 
mukesh guptamukesh gupta
Hi Surith,

First point:-
You don't need to pass parameter from Application. So you need to add in your component default value  

Second point:- Try to use better naming, currently you are using 'Int'

below is a part of component's best prectice:-

<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>



if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh 
This was selected as the best answer
srujith chintha 4srujith chintha 4
mukesh in the action field ihave given action="{!c.calculate }" and u given "{!c.doinit}" can u tell me what is the differnce