{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2756","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2756/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2756/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2756/events","html_url":"https://github.com/vuejs/vue/issues/2756","id":151557492,"number":2756,"title":"[Suggestion] Vue 2.0 - Bring back filters please","user":{"login":"smolinari","id":3314957,"avatar_url":"https://avatars.githubusercontent.com/u/3314957?v=3","gravatar_id":"","url":"https://api.github.com/users/smolinari","html_url":"https://github.com/smolinari","followers_url":"https://api.github.com/users/smolinari/followers","following_url":"https://api.github.com/users/smolinari/following{/other_user}","gists_url":"https://api.github.com/users/smolinari/gists{/gist_id}","starred_url":"https://api.github.com/users/smolinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolinari/subscriptions","organizations_url":"https://api.github.com/users/smolinari/orgs","repos_url":"https://api.github.com/users/smolinari/repos","events_url":"https://api.github.com/users/smolinari/events{/privacy}","received_events_url":"https://api.github.com/users/smolinari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vuejs/vue/labels/discussion","name":"discussion","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-28T06:14:42Z","updated_at":"2016-04-28T12:00:59Z","closed_at":null,"body":"Hi,\r\n\r\nThere was a hot discussion in the Gitter chat and there is [a nice post on the forum](http://forum.vuejs.org/topic/3896/i-m-going-to-miss-filters-in-vue-2-0) 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.  \r\n\r\nSo, 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):\r\n\r\n- They are easier to read in the templates \r\n\r\n`thing in things | filterBy 'foo' | orderBy 'bar' | limitBy 5`\r\n\r\nis simply easy to read. In other words, chaining filters helps make sense of what should actually be expected.\r\n\r\n- 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.\r\n\r\n- Without filters, there will be a ton of boilerplate.\r\n\r\n- Filters allow noobs to learn faster and get a quick and nice winning experience with Vue.\r\n\r\n- Using a mixin for every component to include a self-made \"filter\" isn't really feasible. \r\n\r\nNeedless 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.\r\n\r\nScott"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/215402142","html_url":"https://github.com/vuejs/vue/issues/2756#issuecomment-215402142","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2756","id":215402142,"user":{"login":"natocTo","id":12331181,"avatar_url":"https://avatars.githubusercontent.com/u/12331181?v=3","gravatar_id":"","url":"https://api.github.com/users/natocTo","html_url":"https://github.com/natocTo","followers_url":"https://api.github.com/users/natocTo/followers","following_url":"https://api.github.com/users/natocTo/following{/other_user}","gists_url":"https://api.github.com/users/natocTo/gists{/gist_id}","starred_url":"https://api.github.com/users/natocTo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natocTo/subscriptions","organizations_url":"https://api.github.com/users/natocTo/orgs","repos_url":"https://api.github.com/users/natocTo/repos","events_url":"https://api.github.com/users/natocTo/events{/privacy}","received_events_url":"https://api.github.com/users/natocTo/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T12:00:59Z","updated_at":"2016-04-28T12:00:59Z","body":"+1"}}