leovo2708 / ngx-numeric-textbox

Angular numeric textbox component
7 stars 7 forks source link

Use it as directive instead #5

Open dirkluijk opened 5 years ago

dirkluijk commented 5 years ago

This library looks very nice, but why did you choose for a Component instead of a Directive?

What about

<input type="text" ngx-numeric-textbox />

instead of

<ngx-numeric-textbox></ngx-numeric-textbox>
dirkluijk commented 5 years ago

I ripped your implementation to a StackBlitz and did some improvements:

See: https://stackblitz.com/edit/ngx-number-input

If you want, I can donate it back in a PR.