-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[scoped-registries] Should WC be usable as "views"? #998
Comments
It is rather a question than proposal. The answer is simple: it is already possible and widely used. Any Web Component can be as container as just a self-sufficient UI. The "view" you are talking is a Here are the samples of the Most of web components are working with SLOT as container via shadow DOM. That is just one of samples: shadow-dom-element The discussions of using the template-based Web Components without shadow DOM are in progress. Here is just one of those: It is unclear why this topic is marked by |
The ability to embed microapplications into another Declarative Web Application and Declarative Custom Element is covered by DWA manifest, there are row of proposals related to the concept are in baking and under review. Of course the embedding is not limited to the Declarative ones, the usual Web Components can be injected as well but it would be unsecure as JS is not limited by scope insulation layer. That is addressed by embed-page microapplication container POC. There is no proposal ready on that level yet. LMN if wanted to chime in. |
Thanks @sashafirsov , I'll have a read on the links you've referenced, it sounds very interesting. As for the relation to I was starting by gauging opinion on the subject, as if view-type components are out of scope by consensus, there is not much point going forward with a proposal. |
Web Components have been up to now mostly used as low-level, presentational components. Inside a modern app, there are other type of components that I usually categorise under "views". Common view type may include micro-apps, sections, tabs, modals, etc. (not talking about the actual tab and modal UI component, but reusable tabs and modals with large business flow inside)
I would like to get the community's opinions on possible use of WC as views.
My own answers are:
The text was updated successfully, but these errors were encountered: