SalesforceBlue

Feel the rhythm of Salesforce

Aura

Creating Aura Components

We can create awesome aura components in any of the following ways in Salesforce.

Creating Aura Componnet Using Developer Console:
  1. Click on the gear icon and click Developer Console.

2. In the Developer Console Click on New > Lightning Component.


3. Fill in the name for your component – MyAwesomeComponent and click submit.


4. Now you can enter the code in the editor and make your awesome aura component.


Creating Aura Components Using VS Code:

Before proceeding to the below steps if you wanted to learn about setting up VS Code for Salesforce. You can check it over here – VS Code Set-Up

1. Open VS Code, enter Cmd + Shift + P (For Mac) or Ctrl + Shift + P (Windows) and search for the command SFDX:Create Aura Component then hit enter. Please note that you may not have to write the whole command and it will auto-suggest as you type.


2. Enter the name of your component.


3. Hit Enter and leave the default options as it is.


4. Now you can enter the code in the editor and make your awesome aura component.


We have only created an empty aura component without any code changes. We will add codes in the next part and explore how different resources in the component constitute a Component Bundle.

We can preview the aura component inside an Aura Application. We will be covering it in the next part.

Thank you for visiting SalesforceBlue.com
If you have any queries feel free to write down a comment below 🙂


Leave a Reply

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