LWC Decorators | LWC Salesforce Tutorial | Basic to Advanced

Поділитися
Вставка
  • Опубліковано 17 жов 2024
  • Hello Trailblazers, In this video we're going to learn about decorators in LWC. We're going to see when we need to use the @track and @api decorators and how are they useful.
    There are mainly 3 decorators:- @track, @api and @wire. We're only discussing about @track and @api decorator here. We'll discuss about the @wire decorator in the future tutorial when we'll be dealing with apex.
    Pre Requisites:- Setup a local development server in LWC - • Getting Started with L...
    Code:- github.com/rah...
    Subscribe to SFDC Stop:- www.youtube.co...
    LWC Todo App Project Tutorial Series - • Simplifying the Callou...
    Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:- • Getting started with S...
    Interested in learning about Integration ? Have a look at this playlist:- • Salesforce Integration...

КОМЕНТАРІ • 41

  • @yaswanthsai639
    @yaswanthsai639 Рік тому

    Good explanation with good examples. Thank you very much.

  • @bharathkumarveerabomma3390
    @bharathkumarveerabomma3390 2 роки тому

    Appreciate the way of coding, It takes a lot of practicing and passion to code that way.

    • @sfdcstop
      @sfdcstop  2 роки тому

      Glad you liked the tutorial buddy, Keep Learning!!

  • @lipuahmed586
    @lipuahmed586 2 роки тому

    Nice tutorial... easy!!! thank you

  • @ramanrajsaxena4423
    @ramanrajsaxena4423 3 роки тому +1

    Good work mate, Really appreciate it !! Quite useful for someone who wants to have hands on...

    • @sfdcstop
      @sfdcstop  3 роки тому

      Thank you so much buddy 😁 hope you're doing good.

  • @amrutamhasalkar3619
    @amrutamhasalkar3619 2 роки тому +1

    Hey, this is superb amazing tutorial on decorators. I am at very basic level in lwc and need to clarify few basic things. Coding perspective I understood what is data member and property but could you please explain that in detail. (Especially when this is question in interview )
    Also can you please cover wire adaptor as well?

    • @sfdcstop
      @sfdcstop  2 роки тому

      Hi Amruta, can you share the interview question? Then maybe I can identify what I should add on. Noted your suggestion for wire, will try to create a video on that 🔜

    • @amrutamhasalkar3619
      @amrutamhasalkar3619 2 роки тому

      @@sfdcstop I mean if the question is like what are properties, data member in lwc ?

  • @ChaitanyaHota
    @ChaitanyaHota 3 роки тому +1

    Excellent explanation bro... thank you 🙂

    • @sfdcstop
      @sfdcstop  3 роки тому +1

      Keep watching!!!

  • @AnilKumar-xl2te
    @AnilKumar-xl2te 3 роки тому

    Thanks 🙏 for great explanation

  • @brioquery
    @brioquery 2 роки тому

    Superb!

  • @anithab1319
    @anithab1319 3 роки тому +1

    sappose if we update one property in object (this object did't mark as track)and another property in function what will happen ? is that object property will update or not?

    • @sfdcstop
      @sfdcstop  3 роки тому

      Hi Anitha, if you're updating an object property, you should mark it with @track to track the changes.

  • @Kshirsagar.abhishek
    @Kshirsagar.abhishek Місяць тому

    Really apriciate you teaching skill sir , you should think on lwc course on udemy🎉

    • @sfdcstop
      @sfdcstop  Місяць тому

      Thank you! I created one course though it's specific to Lightning Datatable. You can get it at the best price using my coupon code here: www.udemy.com/course/mastering-lightning-datatable-in-salesforce-lwc/?couponCode=76DF626EC18DECB87854

  • @vaishnavi36
    @vaishnavi36 3 роки тому +1

    awesome, please make more videos

    • @sfdcstop
      @sfdcstop  3 роки тому +1

      Glad to know you liked it...more videos are on the way..!! 🚅

  • @prasadn5012
    @prasadn5012 2 роки тому +1

    hey how can i get your complete lwc vedios and want to join your live training sessions if you provide any coarse.

    • @sfdcstop
      @sfdcstop  2 роки тому +1

      Hi Prasad, I don't have any course as of now and I don't provide live training as well. You can refer to my youtube playlists for lwc:
      Todo App Series (Basics and Project Based): ua-cam.com/play/PLuL63vr-9xHyaEARj8crQe3v2TBQa_Cs8.html
      LWC Concepts (Basics to advanced): ua-cam.com/play/PLuL63vr-9xHwKRdD9aoqjlxwQlDkvrsAa.html

  • @cathym9803
    @cathym9803 2 роки тому

    Thank you so much. 👍🏼

  • @movieworld9471
    @movieworld9471 3 роки тому +1

    Gazab 👌👌👌👌

  • @realRohit001
    @realRohit001 3 роки тому

    clear and precise thank you 👍

  • @shivpatel653
    @shivpatel653 3 роки тому

    superb

  • @tradyrumy
    @tradyrumy Рік тому +1

    What about @wire? and kindly keep making videos as its helpful.

    • @sfdcstop
      @sfdcstop  Місяць тому

      I thought about covering it in the next video but just realised I never created the further video for this series. I'll try to create one soon.

  • @kumarvenkat739
    @kumarvenkat739 Рік тому

    Thank u so much

  • @annaramos3799
    @annaramos3799 3 роки тому +1

    Thank you, It is clear and useful
    Just my mind is a kind of confusing if you compare this with aura cmp where you dont need to specify decorators :v
    But now in these days lwc is everywhere :D

    • @sfdcstop
      @sfdcstop  3 роки тому +1

      Hi Anna, I agree and I am sure you'll find lwc more easy as compared to aura once you create some components using it. We don't have decorators in aura but we do have aura attributes right? :P

    • @annaramos3799
      @annaramos3799 3 роки тому +1

      @@sfdcstop Yeah, actually I think in attributes when you explained @api decorator

  • @kallurma
    @kallurma 3 роки тому

    Thanks you for sharing your knowledge. Please help on this
    I have scenario like
    Quote(Parent)associated object Quote1(child) . I had overriden child(Quote1) "new" Button in aura(inside calling LWC) . When I'll create record in Quote1 object I want to display parent object details(Readonly), because I had create formula fields in Quote1 along with I need to give input other fields how to achieve this scenario.

    • @sfdcstop
      @sfdcstop  3 роки тому +1

      Hi, If you're calling your custom component on the parent components detail page, then you should get the parent record id in the recordId attribute of aura

  • @suryachaudharyverma907
    @suryachaudharyverma907 3 роки тому

    Thanks

  • @AbhishekKumar-te8fj
    @AbhishekKumar-te8fj 3 роки тому

    To the point it was

    • @sfdcstop
      @sfdcstop  3 роки тому

      Thank you Abhishek! Keep Learning!!

  • @priyankasuryawanshi9132
    @priyankasuryawanshi9132 9 місяців тому +1

    Where is @wire decorator?

    • @sfdcstop
      @sfdcstop  Місяць тому

      I thought about covering it in the next video but just realised I never created the further video for this series. I'll try to create one soon.

  • @maximpodhorny2864
    @maximpodhorny2864 2 роки тому

    10:05 - @api