Using Aura:Set with Lightning Components Extension
When we think about Object Oriented Concepts, Inheritance is one thing where we can extract functionality from Super Class and in Lightning Components development aura:set serves with similar feature where we can assign values for the attributes of a Super Component from a Sub Component which extends a Super Component. Resource Link: Lightning Components Developer Guide Below is a simple implementation of having two components and using aura:set we will populate attributes of a base component using another component which will extend our base component. Component 1: This will be our base component which will display records Name and Id which are passed from Component 2 using Aura:Set AuraSet1.cmp <!--AuraSet1--> <aura:component extensible="true" > <!--Load LDS from static resource--> <ltng:require styles="/resource/SLDS/assets/styles/salesforce-lightning-design-system.css"/> <aura:attribute name="rc...