News for hackers. Stuff that matters.
Re:Angular v8.0 by bpye on Wednesday May 29, 2019 @12:05PM (#20041859)
I've been using Angular for a few months now and it's mostly been a good experience. We've been using Angular 7.

My biggest gripe, and this might just be my inexperience, is fighting the change detector to try and ensure reasonable performance when displaying a large number of elements. There are certainly mechanisms to do this but it does seem to take some work.

Re:Angular v8.0 by jinder on Wednesday May 29, 2019 @12:29PM (#20042233)
Switch to OnPush, use async pipes and immutable data structures. Add to that some of the virtualization components that ship with @angular/cdk and you're pretty golden most of the time.
Re:Angular v8.0 by ajryan on Wednesday May 29, 2019 @12:27PM (#20042201)
You should be using OnPush everywhere, then your struggle will change to only getting changes detected in certain scenarios. Still a pain sometimes but not as bad as the Default change detection strategy.
Re:Angular v8.0 by jamesgeck0 on Wednesday May 29, 2019 @12:21PM (#20042104)
FWIW, the Angular team is aware that this is a pain point. There were several talks at NG-Conf a few weeks ago that referenced replacing or removing zone.js-powered change detection for increased performance and/or smaller build sizes. They're trying to avoid another Angular 2 situation though, so it may take a while for a backwards compatible solution to surface as the default.
Re:Angular v8.0 by nicoburns on Wednesday May 29, 2019 @03:34PM (#20044389)
This is precisely what I don't like about Angular. That there is all this stuff. And I have to care about what it is doing under the hood (and this is complicated and not especially well documented).

In React if I have performance issues, then it's pretty easy to work out what's causing them.

Re:Angular v8.0 by jamesgeck0 on Wednesday May 29, 2019 @03:56PM (#20044645)
You can largely ignore what Angular is doing under the hood, tbh. If you're having performance issues, the answer is often related to change detection (aka, Zone.js).
Re:Angular v8.0 by nicoburns on Friday May 31, 2019 @06:33AM (#20059684)
> If you're having performance issues, the answer is often related to change detection (aka, Zone.js).

This is part of Angular really. At least it's not optional to use it. Change detection issues are not fun to debug!

Re:Angular v8.0 by jamesgeck0 on Friday May 31, 2019 @10:56AM (#20061453)
> At least it's not optional to use it.

Zone.js is optional, although it is on by default. It's considered best practice to remove it when building standalone components with Angular Elements.

Re:Angular v8.0 by equasar on Wednesday May 29, 2019 @01:29PM (#20042954)
what's your use case to display a large number of elements in the same page? Curious.
Re:Angular v8.0 by paweldz on Friday June 07, 2019 @10:09AM (#20124630)
like lists with thousands of elements? OnPush change detection and virtual scrolling - https://material.angular.io/cdk/scrolling/overview