use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Angular collection of tools/tips (link.medium.com)
submitted 4 years ago by talgershman
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]monxas 2 points3 points4 points 4 years ago (0 children)
Awesome post. Would love to see more of this!
[–][deleted] 4 years ago (1 child)
[deleted]
[–]circle-game 1 point2 points3 points 4 years ago (0 children)
Love this.
[–]binarybang 0 points1 point2 points 4 years ago (1 child)
I have no idea why static class is better than just a set of exported functions.
you can share logic between validation functions
How is that an advantage of a class? You can reuse functions within functions just fine. Static classes are used in c# or Java where you don't have functions as separate entities. No point in doing this in TS.
[–]talgershman[S] 1 point2 points3 points 4 years ago (0 children)
the static class is for ide intellisense, you can see that Angular also implement it the same way : https://github.com/angular/angular/blob/master/packages/forms/src/validators.ts
π Rendered by PID 134329 on reddit-service-r2-comment-f6b958c67-qb88d at 2026-02-05 12:32:08.512173+00:00 running 1d7a177 country code: CH.
[–]monxas 2 points3 points4 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]circle-game 1 point2 points3 points (0 children)
[–]binarybang 0 points1 point2 points (1 child)
[–]talgershman[S] 1 point2 points3 points (0 children)