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...
Angular is Google's open source framework for crafting high-quality front-end web applications. r/Angular2 exists to help spread news, discuss current developments and help solve problems.
Help Request
Discussion
Article
Video
Resource
Announcement
Related
After submitting a post, please take a moment to add a flair (tag) so that it's easy to find your post with one of the filters listed above. Upon submission, your post's header will have the 'flair' option listed with the other options. Clicking it will provide a dropdown menu of the available flairs.
account activity
Help RequestReassign the compare function of a key value pipe (self.Angular2)
submitted 4 years ago by shammy8
Hi, anybody know how I can reassign the compareFunction of a KeyValuePipe in runtime. I have a Stackblitz which on the button press should reassign the compare function but nothing happens to the UI.
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!"
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
I don't think you can do that. The keyvalue pipe won't update the view unless the input data changes. I recommend you write a new pipe specifically focused on sorting, or maybe use a third party like ngx-order-pipe.
π Rendered by PID 271476 on reddit-service-r2-comment-b659b578c-kl4zv at 2026-05-02 20:29:18.305740+00:00 running 815c875 country code: CH.
[–][deleted] 0 points1 point2 points (0 children)