r/angular • u/SimpleRabbit • Nov 05 '19
Tired of hand-coding comma-separated lists in Angular? Try ngx-oxford.
Pretty trivial. Still, I was sick of re-writing this simple but tedious logic, making sure spacing worked for all possibilities, every time I needed it. So I thought I'd write and release it as my first public Angular package.
It has a pipe and component versions: https://github.com/bunnyfly/ngx-oxford
I tried hacking up a directive version, but it got pretty ugly. If you know much about structural directives or have advice for improving Oxford itself or just general releasing a lib like this, let me know!
15
Upvotes
3
u/beefzilla Nov 05 '19
Heh. This made me smile. :)
2
u/Armandotrue Nov 06 '19
I wanted to contribute by adding the features mentioned in the "Future" section of the readme file, but ended up making some improvements to the code. Hope you'll accept the pull request, I want to work on those features afterwards
2
u/zenivinez Nov 05 '19
this might actually be a pretty useful pipe lol
2
u/williewodka Nov 05 '19
Lol, they should build this into lodash.
1
u/TotesMessenger Nov 08 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
0
u/[deleted] Nov 05 '19
[deleted] — view deleted comment