Thu. May 19th, 2022

The Lightning Component framework is a UI framework for developing single-page applications for mobile and desktop devices.
As of Spring ’19 (API version 45.0), you can build Lightning components using two programming models: the Lightning Web Components model, and the original Aura Components model. Lightning web components are custom HTML elements built using HTML and modern JavaScript. Lightning web components and Aura components can coexist and interoperate on a page.

Configure Lightning web components and Aura components to work in Lightning App Builder and Experience Builder. Admins and end-users don’t know which programming model was used to develop the components. To them, they’re simply Lightning components.

Component Code:-

<aura:component>
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
</aura:component>

JS Code:-

({
doInit: function(cmp) {
// Set the attribute value.
// You could also fire an event here instead.
alert('test');
}
})

Lightning Component Aura Playlist:-

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!