Salesforce Interview Questions with Answers Part 50

1. How to use Lightning Components with the Salesforce1 Mobile App?

Create a custom Lightning tab that include Lightning component.

2. Can child lightning component inherit styles from parent lightning component?


3. What is the use of the aura:method tag in Lightning?

< aura:method > to define a method as part of a component’s API. This enables us to directly call a method in a component’s client-side controller instead of firing and handling a component event. This simplifies the code needed for a parent component to call a method on a child component that it contains.

4. What is Aura?

Aura is the open source technology that powers Lightning Components.

5. Do we need a namespace to develop Lightning Components?

No. Lightning Components used to require a namespace, but that is no longer a requirement.

6. What are the advantages of lightning?

1. Responsive UI
2. Cross Browser Compatability
3. Reusable components
4. Lightning allows us to build software quickly and reliably test it.
5. Readily available in Mobile.

7. What is Lightning Experience?

Lightning Experience is the name for the all new Salesforce desktop app.

8. What is the basic difference between Application Event and Component Event

The major difference between application and component event is that component event is used in child to parent components and application event can be used through out the application.

9. How can we call child component controller method from the parent component controller method?

Yes, we can call using aura methods.

10. What is the use of Document and Renderer in lightning component?

Document – A description, sample code, and one or multiple references to example components
Renderer - Client-side renderer to override default rendering for a component.

11. Disadvantages with Lighting Experience

1. All AppExchange products are not lighting ready.
2. It takes more time to migrate complex customized classic Salesforce app to Lightning ready.

12. How to ensure FLS while working with Lightning Component?

Lightning Data Services already ensures Field Level Security and we can also use into the Apex using isAccessible, isCreateable, isDeleteable and etc methods of Schema class.

13. How to add Lightning Component in Visualforce page?

Lightning component can be added to visualforce page using ltng:outApp.

14. How to extend lightning component? 

Lighting component can be extended using extensible=”true” attribute in aura:component.

15. What is the use of svg in aura bundle?

Custom icon resource for components used in the Lightning App Builder or Community Builder.

16. List of Integration Patterns in Salesforce

No comments:

Post a Comment