Monitor the component registry.

29 views
Skip to first unread message

rob....@gmail.com

unread,
Nov 21, 2014, 1:59:38 PM11/21/14
to polym...@googlegroups.com
I've been thinking of a way to wrap web components within my own system.

One of the concepts I would like to use is listening for web components coming to life within the page.

After some research I found this is not possible, or maybe it is, if so please tell me :-)

Instead for having to search the components by using something like querySelector,
we could just listen on the registry and act once components are ready so a controller can act accordingly.

All I found was a callback which can be used during registration, to me it seems less useable because each component
would have to be modified to include this callback.

My main question is, why aren't the custom element lifecycle events emitted as such on the document's registry ?

I think emitting these events would not be very expensive yet very useful.

Reply all
Reply to author
Forward
0 new messages