Turn an Array into Proper-English with an AngularJS Filter

added by Miroslav Popovic
1/31/2017 12:00:00 AM

97 Views

I needed a way to display a nicely-readable list of strings for an app I'm working on. And by that, I mean that I wanted to display, "Mary, John, and Mark" instead of "Mary, John, Mark". A simple ngRepeat would have been too complex for this, so, filters to the rescue!


0 comments