{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/5711","labels_url":"https://api.github.com/repos/angular/angular/issues/5711/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/5711/comments","events_url":"https://api.github.com/repos/angular/angular/issues/5711/events","html_url":"https://github.com/angular/angular/issues/5711","id":121093892,"number":5711,"title":"Reapply pipe when an item is added to an array ","user":{"login":"JurajMlich","id":6961904,"avatar_url":"https://avatars.githubusercontent.com/u/6961904?v=3","gravatar_id":"","url":"https://api.github.com/users/JurajMlich","html_url":"https://github.com/JurajMlich","followers_url":"https://api.github.com/users/JurajMlich/followers","following_url":"https://api.github.com/users/JurajMlich/following{/other_user}","gists_url":"https://api.github.com/users/JurajMlich/gists{/gist_id}","starred_url":"https://api.github.com/users/JurajMlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JurajMlich/subscriptions","organizations_url":"https://api.github.com/users/JurajMlich/orgs","repos_url":"https://api.github.com/users/JurajMlich/repos","events_url":"https://api.github.com/users/JurajMlich/events{/privacy}","received_events_url":"https://api.github.com/users/JurajMlich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-08T20:36:25Z","updated_at":"2015-12-08T21:11:27Z","closed_at":"2015-12-08T20:40:42Z","body":"(Angular2) Imagine having a situation in which you need to filter some items from an array using a pipe. The HTML code can look like this:\r\n`\r\n<element *ng-for=\"#item of array | pipe\">\r\n`\r\n\r\nEverything works perfectly until you add one item to the array which normally would be filtered and removed by the pipe. You would expect the pipe's transform function being called again. But that's not what happens. It just stays and nothing changes. \r\n\r\nI don't think it is an expected behaviour, I would expect that the pipe is recalled again. What do you think about that? Thanks :)"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/163019045","html_url":"https://github.com/angular/angular/issues/5711#issuecomment-163019045","issue_url":"https://api.github.com/repos/angular/angular/issues/5711","id":163019045,"user":{"login":"JurajMlich","id":6961904,"avatar_url":"https://avatars.githubusercontent.com/u/6961904?v=3","gravatar_id":"","url":"https://api.github.com/users/JurajMlich","html_url":"https://github.com/JurajMlich","followers_url":"https://api.github.com/users/JurajMlich/followers","following_url":"https://api.github.com/users/JurajMlich/following{/other_user}","gists_url":"https://api.github.com/users/JurajMlich/gists{/gist_id}","starred_url":"https://api.github.com/users/JurajMlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JurajMlich/subscriptions","organizations_url":"https://api.github.com/users/JurajMlich/orgs","repos_url":"https://api.github.com/users/JurajMlich/repos","events_url":"https://api.github.com/users/JurajMlich/events{/privacy}","received_events_url":"https://api.github.com/users/JurajMlich/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T21:11:27Z","updated_at":"2015-12-08T21:11:27Z","body":"I'm not quite sure what you mean by that. I want to simply order the items of an array by some property the objects (which are in the array) have. Like for example imagine a class Text which has a property id. \r\n\r\nI have a list of texts in an array. This array is printed by NgFor and I want to the final list be sorted according to the ids of the texts (text with the id 1 will be first, with 10000 will be last). When the ID of any text changes, I want to reorder the list.\r\n\r\nHow can I achieve it?"}}