{"id":21307583,"url":"https://github.com/jdegand/ngfor-optimization","last_synced_at":"2026-05-16T01:34:19.782Z","repository":{"id":198265047,"uuid":"700093729","full_name":"jdegand/ngfor-optimization","owner":"jdegand","description":"Angular Challenges #36 ngFor Optimization","archived":false,"fork":false,"pushed_at":"2023-10-04T20:39:36.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T21:48:30.797Z","etag":null,"topics":["angular","angular-challenges"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdegand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-03T23:45:39.000Z","updated_at":"2023-10-03T23:48:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc574eae-b424-4190-925e-1c859817ec77","html_url":"https://github.com/jdegand/ngfor-optimization","commit_stats":null,"previous_names":["jdegand/ngfor-optimization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdegand/ngfor-optimization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fngfor-optimization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fngfor-optimization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fngfor-optimization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fngfor-optimization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdegand","download_url":"https://codeload.github.com/jdegand/ngfor-optimization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fngfor-optimization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272446265,"owners_count":24936514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-challenges"],"created_at":"2024-11-21T16:33:09.212Z","updated_at":"2026-05-16T01:34:14.761Z","avatar_url":"https://github.com/jdegand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ngfor Optimization\n\n[Angular Challenges](https://angular-challenges.vercel.app/challenges/angular-performance/36-ngfor-optimize/) #36 NgFor Optimization solution\n\n## Built With\n\n- [Angular](https://angular.io)\n- [Angular CLI](https://github.com/angular/angular-cli) version 16.2.2.\n\n## Thoughts\n\n- Would be nice if person model had an id -\u003e could just add trackBy without a custom function\n- Using the profiler, it is tough to tell if the trackBy function is working.\n- Looking at the elements of the app-list is better to tell that the whole list is not updating when using the input, the delete or update buttons.   \n\n## Useful Resources\n\n- [Stack Overflow](https://stackoverflow.com/questions/47843856/angular-what-is-the-point-of-implementing-trackby) - angular what is the point of implementing trackby\n- [Telerik](https://www.telerik.com/blogs/angular-basics-keep-track-incoming-data-angular-trackby-method#:~:text=The%20TrackBy%20Directive,-Angular%20came%20up\u0026text=TrackBy%20and%20ngFor%20together%20allow,of%20rebuilding%20the%20whole%20array.) - angular basic keep track incoming data angular trackby method\n- [Angular University](https://blog.angular-university.io/angular-2-ngfor/) - angular 2 ngFor\n- [Github](https://github.com/angular/angular/issues/12969) - Supporting trackBy: expression|id #12969\n- [Medium](https://medium.com/@ingobrk/here-is-how-you-can-use-trackby-with-a-property-name-ec3bbba8fa75) - here is how you can use trackby with a property name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fngfor-optimization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdegand%2Fngfor-optimization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fngfor-optimization/lists"}