Hi,
There was a hot discussion in the Gitter chat and there is a nice post on the forum about people missing the filter feature in 2.0 and it actually being a no-go to upgrading for some. This isn't a positive direction for the community it seems.
So, I'd like to put up this suggestion to bring back filters in 2.0, because they are so loved and, I would agree, smart. Here are some of the arguments for filters (gathered from the different discussions and no guarantee for correctness):
- They are easier to read in the templates
thing in things | filterBy 'foo' | orderBy 'bar' | limitBy 5
is simply easy to read. In other words, chaining filters helps make sense of what should actually be expected.
- Filters are global, which is great in a templating/ view system. Currency is a simple example of a great filter that can be used everywhere, just by calling it.
- Without filters, there will be a ton of boilerplate.
- Filters allow noobs to learn faster and get a quick and nice winning experience with Vue.
- Using a mixin for every component to include a self-made "filter" isn't really feasible.
Needless to say, there are probably strong arguments for removing filter from an engineering perspective and why I would suggest this thread be a pros and cons and voting for or against the return of filters.
Scott
Hi,
There was a hot discussion in the Gitter chat and there is a nice post on the forum about people missing the
filterfeature in 2.0 and it actually being a no-go to upgrading for some. This isn't a positive direction for the community it seems.So, I'd like to put up this suggestion to bring back filters in 2.0, because they are so loved and, I would agree, smart. Here are some of the arguments for filters (gathered from the different discussions and no guarantee for correctness):
thing in things | filterBy 'foo' | orderBy 'bar' | limitBy 5is simply easy to read. In other words, chaining filters helps make sense of what should actually be expected.
Needless to say, there are probably strong arguments for removing filter from an engineering perspective and why I would suggest this thread be a pros and cons and voting for or against the return of filters.
Scott