Hello,

I am developing an app with Angular (version 5.2.0). One of my component 
has variables containing lists, which are binded to the templates with an 
ngFor to display them. Those lists are fulled with responses of HTTP (using 
HttpClient) requests.
I got a button that initiates a new request when clicked on, and therefore 
changing the value of those lists. But the more i click on this button, the 
more my application gets laggy ... I don't think it comes from my HTTP 
requests, as if I just launch them without re-assigning my variables, all 
goes well, it is really the 'this.listToAssign = response' that seems to 
make my app lag. I wonder if my component (as it is never destroyed or 
recreated) keeps tracks of the old binded variables in the DOM ? and the 
DOM would'nt stop growing ? (but I don't see 'anormal' things with the 
debug tools ...). One of the http requests contain a very large list (4100 
elems), but once this list is re-assigned (for example with a 100 elems 
list), there should be no more problems to display it fastly ?
If someone has encountered the same problem or have any idea i would 
appreciate it because i'm beginning to run out of idea about it ...

Thank you !

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to