You need to sign in to do that
Don't have an account?
M B 33
Getting error when calling doInit from Lightning Component
I have a Lightning App that contains some components.
For one component calling doInit() does not work.
I get following error message :
Action failed: c:BoatSearchResults$controller$doInit [component is undefined] Failing descriptor: {c:BoatSearchResults$controller$doInit}
This is the component and controller :
For one component calling doInit() does not work.
I get following error message :
Action failed: c:BoatSearchResults$controller$doInit [component is undefined] Failing descriptor: {c:BoatSearchResults$controller$doInit}
This is the component and controller :
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" controller="BoatSearchResults" > <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> </aura:component>
({ doInit: function (component, event, helper) { helper.onSearch(); } })
Can you please put you helper.js as well reson is because error comes for helper.
Thanks
Hemant
All Answers
Can you please put you helper.js as well reson is because error comes for helper.
Thanks
Hemant