Closed alizedebray closed 2 months ago
Try to find a better solution. If there is no, publish the components-angular package.
+1 As Angular is used in so many Post projects, design-system components should be first class citizens imho...
This feature is considered necessary for delivering form components and would generally be nice because people started to wrap web components with custom angular components.
Currently the Web Components can be used as is in an Angular application.
However, the component inputs are not computed properly, resulting in such a compiler error every time you bind them to a complex value:
The current solution would be to declare all Web Components in a separate module with
schemas: [CUSTOM_ELEMENTS_SCHEMA]
as requested in the error message and explained in this article. To do this, each project has to declare an Angular wrapper for each Web Component it uses.For this reason, it would be good to use Stencil's ability to generate Angular component wrappers and complement the @swisspost/design-system-components-angular with all components derived from @swisspost/design-system-components.