• Mohamed Aref 5
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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 :
<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();
    }
})





 
  • April 15, 2018
  • Like
  • 0