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...
Good explanation with good examples. Thank you very much.
Glad it was helpful!
Appreciate the way of coding, It takes a lot of practicing and passion to code that way.
Glad you liked the tutorial buddy, Keep Learning!!
Nice tutorial... easy!!! thank you
Good work mate, Really appreciate it !! Quite useful for someone who wants to have hands on...
Thank you so much buddy 😁 hope you're doing good.
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?
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 🔜
@@sfdcstop I mean if the question is like what are properties, data member in lwc ?
Excellent explanation bro... thank you 🙂
Keep watching!!!
Thanks 🙏 for great explanation
Superb!
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?
Hi Anitha, if you're updating an object property, you should mark it with @track to track the changes.
Really apriciate you teaching skill sir , you should think on lwc course on udemy🎉
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
awesome, please make more videos
Glad to know you liked it...more videos are on the way..!! 🚅
hey how can i get your complete lwc vedios and want to join your live training sessions if you provide any coarse.
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
Thank you so much. 👍🏼
Gazab 👌👌👌👌
Thank You!
clear and precise thank you 👍
superb
What about @wire? and kindly keep making videos as its helpful.
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.
Thank u so much
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
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
@@sfdcstop Yeah, actually I think in attributes when you explained @api decorator
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.
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
Thanks
To the point it was
Thank you Abhishek! Keep Learning!!
Where is @wire decorator?
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.
10:05 - @api