Lightning Component Framework

Lightning Component Framework

UI framework designed for responsive features. the Components developed in this framework are compatible with all the devices. 
It also helps to build single-page applications.
Salesforce Lightning includes a framework and some tools that help developers
Aura application or Aura component (Aura framework) we give controller class. we have a controller js where we write the int and helper methods.
In the apex controller, we annotate the method with @AuraEnabled annotation.
In the controller js, we write the function with params component, event, helper.
We call the AuraEnabled apex method in this function with component.get("c.apex Method")

The lightning Component bundle also has design resource. This helps in passing the attributes from the app builder(front end).

Example
We created a component for search functionality in our application 
<aura:component controller="SearchMyAura">
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
Aura:handler calls the javascript function with controller as parameter
getAllTheFamilies() method gets called from this controller
in this i call the AuraEnabled method using component.get

No comments:

Powered by Blogger.