bug: Angular Wrapper doesnt add properties to proxies interface #409
Labels
help wanted
a good issue for the community
package: angular
@stencil/angular-output-target package
type: bug
Something isn't working
Prerequisites
Stencil Version
3.3.1
Current Behavior
when I build my components with the Stencil Angular wrapper I found out that the wrapper is not adding the component properties to the proxies.d.ts interface.
So it is not possible to use the properties in Angular together with the Angular templates.
e.g. after build I got this proxies.d.ts
My Component events are in the interface so that I can use it in angular directly from the component ref element.
But I would assume something like that where my component properties are also added to the interface:
When this would be the case I could use these properties directly from the Angular ref Element (templates)
e.g.
But when I try to use the template and to get the property “value” from it myPhoneInput.value then the IDE is complaining: “Unresolved variable value”. Because the property value is not part of the component interface.
Expected Behavior
Angular Wrapper add properties to proxies interface so that it is possible to use these properties with Angular templates.
System Info
No response
Steps to Reproduce
Build an Angular package within an stencil project.
Use this package in an Angular project.
Try to use component properties e.g. value in Angular templates:
`<my-input #myPhoneInput placeholder="Phone Number" maxlength="16">
Label
Description
<button type="button" (click)="callPhone(myPhoneInput.value)">Call`
Code Reproduction URL
https://github.com/DaniloATellinghusen/stencil-basic-project
Additional Information
No response
The text was updated successfully, but these errors were encountered: