What are Decorators in LWC and its Types | LWC Tutorial

preview_player
Показать описание
Decorators in LWC are a powerful way to add functionality to your components without having to modify the underlying code. In this video, we'll explain what decorators are, and its types and explain you where you can use them to improve your LWC code.

We will discuss the three types of decorators available in LWC i.e. @api, @track, and @wire and discuss about them one by one.

Questions Covered in the video:

What are decorators in LWC?
What are the types of decorators in LWC?
What is the difference between @API @track and @wire?
What is track decorator in LWC ?
What is api decorator in LWC ?
What is wire decorator in LWC ?

Want to kickstart your career in this rapidly growing Salesforce ecosystem ? Look no further than S2 Labs!

Timestamps

0:00 - Introduction
0:10 - What are decorators in LWC?
0:20 - Types of decorators in LWC
0:31 - Explanation of @api decorator
2:04 - Explanation of @track decorator
3:04 - Explanation of @wire decorator
4:02 - Closing remarks

This Video will provide you with complete clarity on Decorators in Lightning Web Component and its types, so make sure you watch it till the end.

Connect with Shrey on:-

Follow S2 labs on :

Follow Cyntexa on :

#lwc #lwctutorial #decorators #decoratorsinlwc #lightningwebcomponents #salesforcedeveloper #salesforcetutorial #salesforcehulk #shreysharma #frontenddevelopment
Рекомендации по теме
Комментарии
Автор

We've heard you! Exciting news - the remaining videos of our LWC series are back. Keep showing your support and learning with Salesforce Hulk.

SalesforceHulk
Автор

1. @api --> decorator is used to expose properties and methods to the component's public API. This means that these properties and methods can be accessed by parent components that use the LWC as a child component.


3. @wire --> decorator is used to bind a property or method to a Salesforce data source or Apex method. This decorator is particularly useful for working with data from Salesforce, such as records from an object or results from an Apex method.

rameshputhalamanoharareddy
Автор

Hi Mohit, I've been following your channel & find your content on salesforce development incredibly helpful. I was wondering if you could consider creating a video that covers practically implementation of decorators in salesforce LWC.

PoojaPatil-dpvh
Автор

Thank you for the amazing content, . Please make more videos on LWC. Right now since this was the last video of your Playlist, i will have to watch other youtube channnels for further topics.

sanketgedam
Автор

Videos are really helpful. Your teaching style is great. Please upload full series

vedantilasnapure
Автор

videos are helpful. thank you for the creativity. pls create more video on lwc (full course of lwc)

priyankamehar
Автор

Hi i am following ur vedios you and your team are helping for so many peolpe. Please can u share alla lwc classes i am waiting for somany days for lwc classes

srilikhithasiri
Автор

Hello Mohith, Could you please make a brief video on how to communicate between two unrelated web components. It could be helpful.

ManojKumar-brey
Автор

thanks mate, you are awesome.. Tons of respect.. when is the next one or do you have a schedule for this one?

KarthicLogs
Автор

Mohit u r too good.Plz post more LWC videos .

sanyasingh
Автор

Waiting for the others 🤔...!Its my bad if dont say this just Loved your Work Mohit

KriviSf
Автор

You and your team is taking any online session like Salesforce course please inform i am interested to join

srilikhithasiri
Автор

Nice it's very useful please write a code with This Three decorators

Manoj_kumar
Автор

This playlist is fantastic but the video takes to much time to come

akashshivhare