timdeschryver / ng-signal-forms

105 stars 7 forks source link

feat: add debounce to signal-input.directive.ts #3

Closed goetzrobin closed 1 year ago

goetzrobin commented 1 year ago

this allows users to set a debounce-time in milliseconds. if a value is provided then the input from ngModel will be debounced for the time specified. only after it will be passed on to our signal based form field.

goetzrobin commented 1 year ago

@timdeschryver just pushed a new approach!

I tried to explain the overall idea in the commit message. I hope it makes sense!

Let me know what you think! 👍

goetzrobin commented 1 year ago

This project is getting more exciting by the day! 🚀 🚀 🚀 🚀 🚀 🚀

If we can figure out a way to allow validate across fields without the need of a reference object we can then have a single object that we can provide to sub components through dependency injection. As signals don't care if they're in components or a service...

And at that point this would already solve pretty much every issue I have encountered with the classic Angular forms in a much smoother way 🤯

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: