QuestionQ70Verified/Basic Lightning Web Component DevelopmentCopy linkReport a problemAsk AstroTutorSave questionIn which two ways may events dispatched from Lightning web components be handled?Choose twoAProgrammatically adding event listenersBListening for all possible events at the document rootCAttaching handlers to DOM elementsDAdding callbacks to componentsShow AnswerAnswerExplanationLightning web components handle standard DOM events either by declaratively attaching event-handler attributes to DOM elements in a component template or imperatively registering listeners with JavaScript’s addEventListener().Learn moreHandle Events | Lightning Web Components Developer GuideShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion