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.

Posted

in

,

by


Related Posts

Comments

5 responses to “Getting Started with Lightning Web Component”

  1. anjaligairola Avatar
    anjaligairola

    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 ?

    1. Updesh Avatar
      Updesh

      You store the css in same folder as other LWC components and keep the name same as your .js file

  2. Gaurish Gopal Goel Avatar

    Works great. Thanks for the post.

  3. […] you are looking for basics of LWC or how to use LWC in flow, Lightning Message Service, how to call Apex then follow this […]

Leave a Reply

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

Discover more from Jitendra Zaa

Subscribe now to keep reading and get access to the full archive.

Continue Reading