Using Lightning Out

There is a plugin which is Lightning out to use the lightning component on any app ( Heroku, Visualforce, Node.js) Lightning out is a framework inside the lightning to connect outside world servers and it will connect using the special library available called/lightning/lightning.out.js and has to be included in visualforce to consume the lightning component […]

Get Current User Id Information in Lightning Components

Getting a Current User Info used to be a hurdle in lightning before Winter 18. We have to call apex method to return system.UserInfo.getUserId() now we no longer have to do this method. In the Lightning Controller, we just need to call the $A.get(“$SObjectType.CurrentUser.Id”) to get the information var userId = $A.get(“$SObjectType.CurrentUser.Id”); Console.log(userId); This helps in reducing […]