Categories
Salesforce

Creating a salesforce lightning web component in visual studio code

import { LightningElement, track } from ‘lwc’; export default class HelloLWC extends LightningElement { //default values @track typedValue = ”; salutationOptions = [ {‘label’: ‘None’, ‘value’: ‘None’}, {‘label’: ‘Mr.’, ‘value’: ‘Mr.’}, {‘label’: ‘Ms.’, ‘value’: ‘Ms.’}, {‘label’: ‘Mrs.’, ‘value’: ‘Mrs.’}, {‘label’: ‘Dr.’, ‘value’: ‘Dr.’}, {‘label’: ‘Prof.’, ‘value’: ‘Prof.’}, ]; //method on click of button handleClick(){ const […]

Categories
Salesforce

How to use visual studio code for Salesforce?

Lets learn how to create Salesforce project in visual studio code editor Install sfdx-cli on your pc by typing command in terminal > npm install -g sfdx-cli Verify installation is complete > sfdx -version Install the Salesforce Extension Pack, inside vscode > extensions > Salesforce Extension Pack Create sfdx project in vscode press cmd+shift+p inside […]