Migrate component events in Aura components to web-standard DOM events in Lightning web components. More information can be found on the EventTarget.addEventListener reference page. I'm trying to convert below part of code from Aura to LWC: The second argument is an object that configures the event behavior. Event handling (overview) Events are signals fired inside the browser window that notify of changes in the browser or operating system environment. Note: The ability to add and remove event handlers allows you to, for example, have the same button performing different actions in different circumstances. Connect and share knowledge within a single location that is structured and easy to search. You implement the display of your {item} (which is currently only the JSON object), into a dedicated component AccountListItem. Making statements based on opinion; back them up with references or personal experience. If something is chosen, it displays the bike information. and what do you think the way that I followed to convert is correct ? Id values must not contain any whitespace. Suspicious referee report, are "suggested citations" from a paper mill? The selected event name is prefixed by on in the declarative handler configured by onselected={onPropertySelected}. rev2023.3.1.43269. The following attributes are not supported on template tags in LWC: {0}. Yea very true, so I'll extend my question : why not use Action