QuestionQ20Verified/Basic Lightning Web Component DevelopmentCopy linkReport a problemAsk AstroTutorSave questionWhat should a developer do to make a public property available in a Lightning web component?ADecorate the field with @apiBDecorate the field with @publicCDecorate the field with @propertyDDecorate the field with @trackShow AnswerAnswerExplanationIn 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 morePublic Properties | Lightning Web Components Developer GuideShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion