Replies: 2 comments 2 replies
-
Tagging Angular people who might be interested @HelloooJoe @MarcoGlauser @stefann4 @javiermarinros @alouarrani @mtarregh @sandeep537 @juvegitau @datasage @mpalourdio |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I created the Angular component for this project (https://github.com/jackocnr/intl-tel-input/tree/master/angular). I'm not an Angular expert, so I have a few questions about my implementation and would appreciate feedback:
1. Component vs Directive Architecture
Wouldn't it have been better to use a
@Directive
rather than a@Component
? This would allow users to have all the native input events directly available. The currentapplyInputProps
function is not very optimal and could be removed with a directive approach.2. Angular Version Compatibility
I used the traditional
@Input
/@Output
syntax rather than modern Angular signal-based approaches. This means I could potentially lower the minimum required Angular version to 17 or 18. Would this be beneficial for broader compatibility?3. Custom Build Process
I implemented a custom build using
ngc
+esbuild
to preserve Angular metadata (see PR #2056). While my tests show no issues, I'm wondering if this approach could cause problems with Angular applications or if there are potential issues I'm overlooking.Any insights or suggestions for improvement would be greatly appreciated!
Thanks for your feedback.
Beta Was this translation helpful? Give feedback.
All reactions