Re: [webcomponents] Need "slotting changed" event (#288)

@sorvell 

If we use an event, how the user-facing event should be?

```js
slot.addEventListner("slotted", (e) => {
  console.log(e.target) ;; -> slot
  console.log(e.target.getAssignedNodes({flattern: true}) ;; -> Show the current assignedNodes({flatten: true})
});
```

Is that enough as an API? Do you need addedNodes / removedNodes / oldAssignedNodesBeforeChanged or something else?



---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/288#issuecomment-178416415

Received on Tuesday, 2 February 2016 07:15:53 UTC