QuestionQ20

VerifiedBasic Lightning Web Component Development

What should a developer do to make a public property available in a Lightning web component?

Explanation

In Lightning Web Components, decorating a field with @api exposes it as a public property in the component’s API, allowing consuming components to set or access it.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!