|
|
|
|
|
by megous
3223 days ago
|
|
Is it possible to nest custom elements? I suppose it should be, but how would it be seen in DOM? <my-container>
<some-child some-attr></some-child>
</my-container> How can I get notifications in my-container when someone from outside adds another child to it? |
|
You can get notifications through the mutation observer API: https://developer.mozilla.org/en-US/docs/Web/API/MutationObs...