Getting Started with Lightning Web Component

Before starting with Lightning Web Component, I would suggest to read this introduction post first.

If you enjoy watching video then you might enjoy below video where I conducted Live coding explaining basics of Lightning Web Component.

In this post, we are going to Show loading image on initial load of LWC. In background we would be calling Apex class to take decision if loading image should be hided or redirect user to some other page.

To make LWC faster, we are going to use @Auraenabled(Cacheable=true) and Platform Cache (Session based)

Below code snippets are self explanatory and would help to get started with calling Apex from Salesforce.


  1. Have gone through the video and the session was very helpful to understand the web components basics.

    I’ve understood the code for HybridAccountView but the very first file (css ) where would i need to store that code? Should I put it inside style tag in html file ?

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.