Y
Hacker News
new
|
ask
|
show
|
jobs
by
papa0101
882 days ago
slotchange
is your answer. In the
connectedCallback
add the eventListener and inside your slotchange handler:
const myBs = this._slot?.assignedElements();