Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Required attribute and init handler in lightning component

Asked by Anna Ball Apr 24, 2021 396 views 1 answer
Share

About this question

 I have the following in my component:

Component's controller simply calls apex auraEnabled method (which is fetches one record of Camping_Item__c type) and sets v.item attribute.When I try to run an app with this component, I get an error: [NoErrorObjectAvailable] Aura.loadComponent(): Failed to initialize application. If I remove required="true" from aura:attribute all goes fine. Why is that? Is it possible to use the required="true" property with init handler?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.