Skip to content
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

[Tracking] Add Angular wrappers for Web Components #3469

Open
2 of 5 tasks
jakobe opened this issue May 13, 2024 · 0 comments
Open
2 of 5 tasks

[Tracking] Add Angular wrappers for Web Components #3469

jakobe opened this issue May 13, 2024 · 0 comments

Comments

@jakobe
Copy link
Collaborator

jakobe commented May 13, 2024

Create tooling to make Angular wrapper for easy consumption in target projects and to ensure existing tests (badge.component.spec.ts) can be run.

Stencil maintainers have some considerations on why Angular wrappers makes sense here.
If we want to ensure backward compatability, there are three key arguments for creating the wrappers:

  1. If there are no angular wrappers, consumers have to use CUSTOM_ELEMENTS_SCHEMA in all modules, effectively ignoring tag validation.
  2. View queries like ViewChild(SomeComponent) will no longer work, and will have to be re-written with the element name instead.
  3. No dependency injection of components possible if there is no angular type

Issues

Further reading

@RasmusKjeldgaard RasmusKjeldgaard changed the title [WebComp] Add Angular wrapper for Badge Web Component [WebComp] Add Angular wrappers for Web Components Jun 18, 2024
@RasmusKjeldgaard RasmusKjeldgaard changed the title [WebComp] Add Angular wrappers for Web Components [Tracking] Add Angular wrappers for Web Components Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants