Question:- What are the components in Salesforce Lightning?
Answer:- Salesforce Lightning includes the following components: 1. Lightning Component Framework – It is a javascript framework and a collection of general components that allow the development of recyclable components for personalizing the Salesforce1 Mobile App and Lightning Experience 2. Lightning Experience – It is the new and modern user experience and interface for Salesforce 3. Lightning Exchange – It relates to a part of AppExchange, which has over 70 partner components to start the development process 4. Lightning Design System – It helps build applications with the look and feel of Lightning Experience but without having to write a single line of CSS 5. Visual Building tools – It relates to drag-and-drop features that enable easy and quick customization and app building
Question:- What is Lightning Experience?
Answer:- Lightning experience is the name for the latest Salesforce desktop application. It has the latest features with advanced UI and speed optimization.
Question:- How are Lightning components built?
Answer:- Lightning components are built using two programming models: • Native Aura Components Model Aura is a freeware technology that powers the Lightning components. It is a UI framework used for the development of dynamic web apps for mobile and desktop devices. Aura bridges the client and server through partitioned multi-tier component development and uses JavaScript on the client-side as well as on the server-side. It has a scalable long-lived lifecycle to allow the development of growth-oriented apps. Aura allows the creation of apps that are not dependent on Salesforce data. Because of this, there is minimal disruption to the daily users. As the programs don’t have to be optimized for each device, Aura allows for more efficiency in development. • Lightning Web Components Model The aspects of Web Components that work well in browsers are supported by Lightning Web Components. It only adds what is necessary to work in all Salesforce-supported browsers. It is a W3C Web Components standard implementation. Lightning Web Components Framework is a set of advanced lightweight frameworks that are based on the most recent web standards. It’s a reusable code-based document object model element. It can help create sophisticated interfaces without using JS or the creation of a library making it simple and fast to use thus, saving a lot of time and work on the web stack.
Question:- What is the use of aura: namespace?
Answer:- Aura: namespace comprises all the main building blocks to define applications and components.
Question:- What are the different types of events of Salesforce Lightning components?
Answer:- ollowing are the three events of Salesforce Lightning components: 1. System Events: Salesforce fires the system events during the Lightning app lifecycle. 2. Application Event: It follows a traditional publish-subscribe model and is fired from an instance of a component. All the components that provide a handler for the event are notified. 3. Component Event: It is fired from an instance of a component and handled by the component that fired the event or a component in the containment hierarchy that receives the event.
Question:- What is Lightning Data Service?
Answer:- Lightning data service is used for carrying out basic tasks like creating, editing, loading, or deleting a record in a component without Apex code. It handles sharing rules and field-level security. Lightning data service enhances the performance consistency and UI.
Question:- What are the component bundles of the Lightning components?
Answer:- Following are the component bundles of the Lightning components: Controller: It handles the client-side events Documentation: This component bundle is used for recording the component’s use Style: It includes component style Renderer: It contains a component default rendering behavior Helper: General logic can be written in this component bundle used by different controller methods to avoid repetition
Question:- How can we use Lightning components with Salesforce1 Mobile App?
Answer:- Lightning Components can be used with the Salesforce1 mobile app by creating a traditional Lightning tab that refers to the component. That tab can be added to the Salesforce1 mobile navigation.
Question:- What are the different types of Lightning Record pages, and how are they built?
Answer:- Record page, App page, and Homepage are the different types of Lightning record pages and they can be built using Lightning App Builder.
Question:- What is Lightning Out?
Answer:- Lightning out is used if a component has to be used on the external site. The advantage is that Lightning components can be utilized in a visual force page. It acts as a bridge to surface Lightning components in any remote web container.
Question:- How can we utilize a Lightning component in the VisualForce Page?
Answer:- Using Lightning Out can help embed the Lightning component on the VisualForce page. It can be achieved in three steps: 1. The Lightning components for the javascript library of visual force must be first inserted into the intended visual force page through the tag. 2. A Lightning app that is used for the component dependencies is then generated and pointed. 3. Finally, a javascript function needs to be written that creates the component over the page through $Lightning.createComponent().
Question:- What is the difference between a component event and an application event?
Answer:- Component event is used for interaction between the parent and child. The change in the child component can be communicated to the parent component through the component event. Application events are used to send modifications in the component to a wide audience. The components that have registered for this event will get an alert.
Question:- Explain Namespace in the Salesforce Lightning components?
Answer:- The Namespace is used to group components together and can be created through an organization. The Lightning components are a part of a namespace. C is the default namespace. If the namespace is created for an organization, then that namespace can be used for the Lightning components.
Question:- Where can the Lightning components be used?
Answer:- Lightning components can be used in the following places: Dragging and dropping them in the community builder and Lightning App Builder Adding it to the Lightning pages Starting it as a quick action Creating stand-alone applications
