• A G 27
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,
I am learning lightning, can some1 pls help me.

I have created 2 components 1 is parent and the other is child and i am using child component in application so that it wud call parent indirectly.And if i call my parentcomponent in application its throwing me an error saying "It cant be instantiated". 

<--c:parentinherit-->
<aura:component extensible="true">
    <h3>Hi i am parent comp</h3>
</aura:component>

<--c:childinherit-->
<aura:component  extends="c:parentinherit">
    <h1> I am from child</h1>
</aura:component>


In my application i am using child component.I am not getting child component header tag output. Can any1 help?

<aura:application >
    
    Hi i am from application
    <c:childinherit/>
</aura:application>







 
  • December 04, 2019
  • Like
  • 0
Hi,
I am learning lightning, can some1 pls help me.

I have created 2 components 1 is parent and the other is child and i am using child component in application so that it wud call parent indirectly.And if i call my parentcomponent in application its throwing me an error saying "It cant be instantiated". 

<--c:parentinherit-->
<aura:component extensible="true">
    <h3>Hi i am parent comp</h3>
</aura:component>

<--c:childinherit-->
<aura:component  extends="c:parentinherit">
    <h1> I am from child</h1>
</aura:component>


In my application i am using child component.I am not getting child component header tag output. Can any1 help?

<aura:application >
    
    Hi i am from application
    <c:childinherit/>
</aura:application>







 
  • December 04, 2019
  • Like
  • 0