Re: [WICG/webcomponents] [declarative-custom-elements] Use cases (Issue #1099)

sashafirsov left a comment (WICG/webcomponents#1099)

> Do other components and libraries need to import the declarative definitions? How?

No, but can. Declarative pattern in DCE is same as in AOP. The implementation can be directed by any level. It would be up to DCE vendor to decide whether to open overrides or lock inner CE registry. Consumer can try to override the meaning of tags( CE registry ) by:
* defining the tags mapping to implementation modules `<custom-element tag="a-bc" scr="@mod1/element-1.html">`
* overriding source maps
* etc.

The "high order" templates most likely would provide the structure and implementation would set its implemenation. Similar to interfaces and factory pattern.



-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1099#issuecomment-2803702440
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1099/2803702440@github.com>

Received on Tuesday, 15 April 2025 03:50:30 UTC